参考:http://blog.csdn.net/mengjiangtao/article/details/24195523
sudo service ssh start
报错:
Failed to start ssh.service: Unit ssh.service not found.
添加ssh.service
sudo systemctl enable ssh.service
报错:
ssh.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable ssh
insserv: warning: script 'ssh' missing LSB tags and overrides
update-rc.d: error: ssh Default-Start contains no runlevels, aborting.
原因:/etc/init.d/ssh没有LSB tags。参考其他文件,格式如下:
#!/bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $sy
最后
以上就是爱撒娇唇彩最近收集整理的关于Failed to start ssh.service: Unit ssh.service not found.的全部内容,更多相关Failed内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复