CentOS 6.5优化开机启动服务

使用chkconfig命令列举出所有服务,配合管道筛选出开机默认启动的服务,再去掉level0(关机)、level4(无意义)和level6(重启)的显示,使结果更直观。 chkconfig | grep 3:on | awk '{print $1,$3,$4,$5,$7}'
abrt-ccpp       1:off   2:off   3:on    5:on
abrtd           1:off   2:off   3:on    5:on
acpid           1:off   2:on    3:on    5:on
atd             1:off   2:off   3:on    5:on
auditd          1:off   2:on    3:on    5:on
autofs          1:off   2:off   3:on    5:on
blk-availability1:on    2:on    3:on    5:on
certmonger      1:off   2:off   3:on    5:on
cpuspeed        1:on    2:on    3:on    5:on
crond           1:off   2:on    3:on    5:on
cups            1:off   2:on    3:on    5:on
haldaemon       1:off   2:off   3:on    5:on
ip6tables       1:off   2:on    3:on    5:on
iptables        1:off   2:on    3:on    5:on
irqbalance      1:off   2:off   3:on    5:on
kdump           1:off   2:off   3:on    5:on
lvm2-monitor    1:on    2:on    3:on    5:on
mcelogd         1:off   2:off   3:on    5:on
mdmonitor       1:off   2:on    3:on    5:on
messagebus      1:off   2:on    3:on    5:on
netfs           1:off   2:off   3:on    5:on
network         1:off   2:on    3:on    5:on
nfslock         1:off   2:off   3:on    5:on
portreserve     1:off   2:on    3:on    5:on
postfix         1:off   2:on    3:on    5:on
postgresql-9.2  1:off   2:on    3:on    5:on
rabbitmq-server 1:off   2:on    3:on    5:on
rpcbind         1:off   2:on    3:on    5:on
rpcgssd         1:off   2:off   3:on    5:on
rsyslog         1:off   2:on    3:on    5:on
sshd            1:off   2:on    3:on    5:on
sysstat         1:on    2:on    3:on    5:on
udev-post       1:on    2:on    3:on    5:on

以下是我选择关闭的服务。
服务名 解释
acpid高级配置和电源管理接口,用于laptop,服务器不需要
atd类似于cron,二选一我选择cron
certmonger图形界面需要用到
cpuspeed调节CPU速度,服务器应该用不上
cups打印机相关,用不上
fcoe光纤相关,用不上
ip6tables除非使用了ipv6,否则用不上
irqbalance多处理器才有作用,而且貌似有bug
iscsi IBM的网络存储技术,用不上
iscsid 同上
lvm2-monitor使用了lvm则需要打开,没有使用lvm就不需要自启
blk-availability也是lvm相关,建议同上
原文地址:https://www.cnblogs.com/sherlock-merlin/p/9382212.html