Redirecting to /bin/systemctl restart sshd.service

来源:互联网 发布:js延迟加载方式 编辑:程序博客网 时间:2024/06/06 14:19

在云服务器 ECS Linux CentOS 7 下重启服务不再通过 service  操作,而是通过 systemctl 操作。 操作说明如下:

1. 查看 sshd 服务是否启动:

???704.jpg

看到上述信息就可以确定是启动了。

2. 如果没有启动,则需要启动该服务:

  1. systemctl start sshd.service

3. 重启 sshd 服务:

  1. systemctl restart sshd.service

4. 设置服务开启自启:

  1. systemctl enable sshd.service
阅读全文
0 0
原创粉丝点击