[root@localhost ~]# LANG=en
[root@localhost ~]# for root in chkconfig --list|grep 3:on|awk '{print $1}'
;do chkconfig --level 3 $root off;done
[root@localhost ~]# for root in crond network rsyslog sshd sysstat vsftpd ;do chkconfig --level 3 $root on;done #vsftpd是我自己的FTP服务器服务,可以更换成别的服务
[root@localhost ~]# chkconfig --list|grep 3:on
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off
vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off