过滤出来需要的开机自启动项:chkconfig --list|grep 3:on|grep -v "crond|sshd|network|rsyslog|sysstat"
关闭不需要的自启动项:chkconfig --list|grep 3:on|grep -v "crond|sshd|network|rsyslog|sysstat"|awk ' {print "chkconfig",$1,"off"} '|bash
显示最后的开机自启动项:chkconfig --list|grep 3:on