位置: 编程技术 - 正文

CentOS系统环境精简优化详解(centos基本环境)

编辑:rootadmin

推荐整理分享CentOS系统环境精简优化详解(centos基本环境),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:centos运行环境,centos 精简,centos基本环境,centos lamp环境部署,centos运行环境,centos 环境变量设置,centos8基本环境选哪个,centos运行环境,内容如对您有帮助,希望把文章链接给更多的朋友!

第一步、删除不必要的自带软件包

yum remove Deployment_Guide-en-US finger cups-libs cups ypbind

yum remove bluez-libs desktop-file-utils ppp rp-pppoe wireless-tools irda-utils

yum remove sendmail* samba* talk-server finger-server bind* xinetd

yum remove nfs-utils nfs-utils-lib rdate fetchmail eject ksh mkbootdisk mtools

yum remove syslinux tcsh startup-notification talk apmd rmt dump setserial portmap yp-tools

yum groupremove "Mail Server" "Games and Entertainment" "X Window System" "X Software Development"

yum groupremove "Development Libraries" "Dialup Networking Support"

yum groupremove "Games and Entertainment" "Sound and Video" "Graphics" "Editors"

yum groupremove "Text-based Internet" "GNOME Desktop Environment" "GNOME Software Development"

第二步、升级centos系统

yum update #更新系统

yum clean all #清理全部缓存文件

第三步、禁用seLinux

sestatus #先执行看seLinux状态,如果不是disabled,就需要执行下面步骤,否则不要执行

vi /etc/selinux/config

SELINUX=disabled #禁用SeLinux

SELINUX=enforcing #使用SeLinux

第四步、禁止IPV6(执行后需要reboot重启)

vi /etc/modprobe.conf #打开文件,把下面两行加到最后

alias net-pf- off

alias ipv6 off

第五步、初始化防火墙

touch /etc/sysconfig/iptables

iptables -F

iptables -X

iptables -Z

service iptables save

service iptables restart

第六步、禁止无用服务

#! /bin/bash

service acpid off

service atd stop

service auditd stop

service avahi-daemon stop

service avahi-dnsconfd stop

service bluetooth stop

service conman stop

service cpuspeed stop

service cups stop

service dnsmasq stop

service dund stop

service firstboot stop

service hidd stop

service httpd stop

service ibmasm stop

service ip6tables stop

service irda stop

service kdump stop

service lm_sensors stop

service mcstrans stop

service messagebus stop

service microcode_ctl stop

service netconsole stop

service netfs stop

service netplugd stop

service nfs stop

service nfslock stop

service nscd stop

service ntpd stop

service oddjobd stop

service pand stop

service pcscd stop

service portmap stop

CentOS系统环境精简优化详解(centos基本环境)

service psacct stop

service rdisc stop

service restorecond stop

service rpcgssd stop

service rpcidmapd stop

service rpcsvcgssd stop

service saslauthd stop

service sendmail stop

service setroubleshoot stop

service smb stop

service vncserver stop

service winbind stop

service wpa_supplicant stop

service xfs stop

service ypbind stop

service yum-updatesd stop

chkconfig acpid off

chkconfig atd off

chkconfig auditd off

chkconfig avahi-daemon off

chkconfig avahi-dnsconfd off

chkconfig bluetooth off

chkconfig conman off

chkconfig cpuspeed off

chkconfig cups off

chkconfig dnsmasq off

chkconfig dund off

chkconfig firstboot off

chkconfig hidd off

chkconfig httpd off

chkconfig ibmasm off

chkconfig ip6tables off

chkconfig irda off

chkconfig kdump off

chkconfig lm_sensors off

chkconfig mcstrans off

chkconfig messagebus off

chkconfig microcode_ctl off

chkconfig netconsole off

chkconfig netfs off

chkconfig netplugd off

chkconfig nfs off

chkconfig nfslock off

chkconfig nscd off

chkconfig ntpd off

chkconfig oddjobd off

chkconfig pand off

chkconfig pcscd off

chkconfig portmap off

chkconfig psacct off

chkconfig rdisc off

chkconfig restorecond off

chkconfig rpcgssd off

chkconfig rpcidmapd off

chkconfig rpcsvcgssd off

chkconfig saslauthd off

chkconfig sendmail off

chkconfig setroubleshoot off

chkconfig smb off

chkconfig vncserver off

chkconfig winbind off

chkconfig wpa_supplicant off

chkconfig xfs off

chkconfig ypbind off

chkconfig yum-updatesd off

这样通过上述6步骤,就可以完成对centos精简和优化。

CentOS文件和目录权限实战详解 环境创建俩个用户user1和user2[root@localhost~]#useradduser1[root@localhost~]#useradduser2创建两个文件夹[root@localhost~]#mkdir-p/user1/user2打开另外一个终端切换到su-user1[roo

CentOS6.2版本用yum升级到CentOS6.6的方法 因为手上只有6.2版本的CentOS,安装好后觉着版本太低了,就通过命令行进行升级查看可用的更新#yumlistupdates更新升级到centos6.5#yumupdate不幸的是,我在这

CentOS用户账号管理详解 1、用户管理/etc/passwd用户名配置文件/etc/shadow用户密码配置文件(1)/etc/passwd的结构:username:password:uid:gid:commit:userhomepath:shell说明:uid和gid系统默认按序自

标签: centos基本环境

本文链接地址:https://www.jiuchutong.com/biancheng/359107.html 转载请保留说明!

上一篇:CentOS系统中跟踪高IO等待详解(linux 追踪)

下一篇:CentOS文件和目录权限实战详解(centos查看目录空间大小)

  • 税务稽查以前年度进项税额转出
  • 什么是协税护税员
  • 一般纳税人税费计算明细表
  • 普通发票领多了会怎么样
  • 专票上不小心印上字了,怎么去除
  • 所得税季报填错了已经申报了
  • 出口退税转内销会计分录
  • 公司变更地址后需要去开户银行变更
  • 钻井勘探支出已费用化的探井
  • 事业单位缴纳税款比例
  • 生产成本福利费用汇算清缴嘛
  • 固定资产转为投资性房地产折旧怎么算
  • 海关进口需要什么手续
  • 开票税率选错申报增值税时怎么处理
  • 小规模纳税人需要汇算清缴吗
  • 领备用金时会计怎么做账
  • 公积金提取条件
  • 什么经营范围可以开培训费
  • 企业为员工购买社保缴费标准
  • 存出投资款是什么凭证
  • 大型机械拆装
  • 金银镶嵌首饰在哪个环节交消费税
  • 无形资产的摊销应计入什么科目
  • 脑部病毒感染什么症状
  • 王者荣耀中刘邦技能解析以及如何连招
  • linux命令top作用
  • 水利建设基金是税还是费
  • 支付宝账单有什么作用
  • win10如何禁止
  • 无偿受赠房产出售税费
  • 老电脑更新系统会怎么样
  • 税后讲课费的个税由谁承担
  • PHP:mcrypt_module_close()的用法_Mcrypt函数
  • php格式图片
  • 应付债券的应付利息怎么计算
  • 长期资产的减值和流动资产的减值的区别
  • import vue from vue报错
  • php考试时间倒计时
  • php swoft
  • 固定资产的计提折旧在月初还是月末
  • html不能运行
  • 个体工商户属于灵活就业人员吗
  • 农业企业所得税是免税的吗
  • 外地预缴城建税税率
  • 先开发票还是先收钱
  • 增值税进项加计抵减账务处理
  • 社保基数怎么申请下调
  • 织梦官方网站
  • 织梦dedecms如何升级ckeditor
  • 或有对价的确认条件
  • 小微企业应具备的条件
  • 销售折让怎么写分录
  • 允许在企业所得税税前扣除的
  • 购买金税盘的分录怎么做
  • 个人独资企业费用扣除
  • 金税盘技术维护费
  • 公司多出来的钱怎么办
  • 保证金抵扣货款情况说明范文
  • 企业增资扩股如何办理
  • 酒店会计的账务处理
  • 私营企业固定资产法律制度
  • 醒狗音乐免费下载歌曲2017最新版
  • Mac OSX通过homebrew卸载formula的方法
  • windows关机蓝屏是怎么回事
  • mac safari使用技巧
  • windows 8 build
  • android开机自启动显示界面
  • cocos2dx-3.0(23) ScrollView 缩放 及 touch新用法
  • 编写注册表文件
  • vue中的vuex
  • jquery层次选择器主要包括哪几种分类
  • 制作网页的三大技术
  • 安卓快速开发平台
  • python django orm
  • 房屋契税和维修基金是开发商交还是业主交
  • 国税地税征管体制改革方案
  • 贵州银行短信服务怎么开通
  • 郑州国税局投诉电话
  • 加计扣除减免税金额怎么填
  • 税务注销了怎么查看纳税申报表
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设