Redirecting to /bin/systemctl restart sshd.service
Redirecting to /bin/systemctl restart sshd.service在云服务器 ECS Linux CentOS 7 下重启服务不再通过 service 操作,而是通过 systemctl 操作。 操作说明如下:1、查看 sshd 服务是否启动:systemctl status sshd.service这样就是启动成功了2、如果没有启动,则需要启动该服务:syste
·
Redirecting to /bin/systemctl restart sshd.service
在云服务器 ECS Linux CentOS 7 下重启服务不再通过 service 操作,而是通过 systemctl 操作。 操作说明如下:
1、查看 sshd 服务是否启动:
systemctl status sshd.service
这样就是启动成功了
2、如果没有启动,则需要启动该服务:
systemctl start sshd.service
3、重启 sshd 服务:
systemctl restart sshd.service
4、设置服务开启自启:
systemctl enable sshd.service
更多推荐
已为社区贡献3条内容
所有评论(0)