在文件/etc/init/ssh.conf中,有一句 start on filesystem or runlevel [2345] 如果想关闭自动启动的话,把这一局修改为start on runlevel[2345]或者直接注释掉. 相关命令: sudo service ssh start #手动启动服务 sudo service ssh stop #手动停止服务 sudo service ssh status #查看服务状态 但是以上设置完成后我重启系统发现ssh服务依旧没有启动,于是我接着修…
修改/etc/rc.local文件(增加红色部分) [root@localhost ~]# cat /etc/rc.local #!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full Sys V style init stuff.…