|
|
刚才修改了一下ssh登录的端口。修改的是/etc/ssh/sshd_config 把端口给改了
等我要用service sshd restart 重启时,显示sshd: unrecognized service
再用/etc/init.d/ssh.d restart 重启时 No such file or directory
最后发现/etc/init.d/ 下面没有sshd文件,只有ssh文件
然后试了/etc/init.d/ssh restart
显示 Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service ssh restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart ssh
ssh start/running, process 3749
不怎么看得懂,
最后试了下 service ssh restart
ssh start/running, process 3825
请问这到底怎么回事啊。晚上都是写前面两种重启的,我怎么不行 ssh 和sshd有什么不同啊??? |
|