需要保留的服务:crond、iptables、irqbalance、microcode_ctl、network、random、sshd、syslog、local
一 。使用命令:ntsysv 打开选项窗口进行操作
Press <Space> to choice
二 、脚本完成:
for i in `ls /etc/rc3.d/S*` do CURSRV=`echo $i|cut -c 15-` echo $CURSRV case $CURSRV in crond | iptables | irqbalance | microcode_ctl | network | random | sshd | syslog | local ) echo "Base services, Skip!" ;; *) echo "change $CURSRV to off" chkconfig --level 235 $CURSRV off service $CURSRV stop ;; esac done
精华文章来源于:http://5icentos.com/5icentos/222.html
十分感谢原作者。