全球主机交流论坛

标题: 这个sshd不怎么寻常啊?? [打印本页]

作者: robin123    时间: 2012-1-7 21:07
标题: 这个sshd不怎么寻常啊??
刚才修改了一下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有什么不同啊???
作者: master    时间: 2012-1-7 21:08
有趣
作者: robin123    时间: 2012-1-7 21:08
master 发表于 2012-1-7 21:08
有趣

为什么会这样啊?
作者: oldghost    时间: 2012-1-7 21:09
/etc/init.d/ssh restart
作者: robin123    时间: 2012-1-7 21:10
oldghost 发表于 2012-1-7 21:09
/etc/init.d/ssh restart

这个是显示第三个,很长的一段,看不懂
作者: Kokgog    时间: 2012-1-7 21:10
第一种是centos的....
第二种是纯debian的.....
你的疑似是比较新的ubuntu.......
作者: robin123    时间: 2012-1-7 21:11
本帖最后由 robin123 于 2012-1-7 21:11 编辑
Kokgog 发表于 2012-1-7 21:10
第一种是centos的....
第二种是纯debian的.....
你的疑似是比较新的ubuntu.......


我的是10.04的ubuntu。那么是用service ssh restart就行了???
作者: hepac    时间: 2012-1-7 21:12
ubuntu下看/etc/init目录

网上的教程99%都是垃圾站互相转载
作者: robin123    时间: 2012-1-7 21:14
hepac 发表于 2012-1-7 21:12
ubuntu下看/etc/init目录

网上的教程99%都是垃圾站互相转载

我也觉得,没有讲清环境。
作者: whhuazi    时间: 2012-1-7 21:14
提示: 作者被禁止或删除 内容自动屏蔽
作者: robin123    时间: 2012-1-7 21:14
whhuazi 发表于 2012-1-7 21:14
哈哈

求元老详解




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4