- 日常错误积累-01-ssh重启报错或者无法重启-Failed t
- 重启nginx 服务器报错nginx: [emerg] bind
- 如何解决FIFA23 反作弊系统错误 9:5 或者22:2
- 2019-08-18 Job for docker.servic
- ubuntu重启后显卡挂了:报错NVIDIA-SMI has f
- 重启service httpd restart
- LayaAir:右键变量“转到定义”不出现,F12失效
- process-launch-failed-unspecifie
- 2018-10-24 虚拟机centos7 重启以后突然不能联网
- docker报错:Failed to restart docke
1.在修改了sshd_config文件之后需要重启sshd,准备执行一下命令进行重启:
/etc/init.d/ssh restart
2.发现这个路劲底下根本没有ssh,尝试以下命令:
# sudo service ssh restart
Redirecting to /bin/systemctl restart ssh.service
Failed to restart ssh.service: Unit not found.
出现以下错误
Failed to restart ssh.service: Unit not found.
3.原因:以上命令都是centos6里面的命令,在centos7需要用:
systemctl restart sshd
网友评论