开机自启服务【运行级别】

1、chkconfig --list    (查看所有启动项)

 

2、chkconfig sshd on (设置其开机启动)

3、chkconfig sshd off (设置其开机关闭)

4、chkconfig --level 3 sshd on(设置单个)

     chkconfig --level 345 sshd on (同时设置多种运行模式下启动)

 

posted @ 2018-10-22 09:18  骚涛  阅读(320)  评论(0编辑  收藏  举报