centos一般关闭不必要开机自启动服务

centos一般关闭不必要开机自启动服务

执行以下命令:

 for name in `chkconfig --list|grep 3:on|cut -d " " -f1 `;do chkconfig $name off;done

 for name in crond network rsyslog sshd ;do chkconfig --level 3 $name on;done

chkconfig --list | grep 3:on

猜你喜欢

转载自lwpsoft.iteye.com/blog/2254423
今日推荐