码迷,mamicode.com
首页 > 其他好文 > 详细

云服务器 ECS CentOS 7 下重启 sshd 服务操作方法

时间:2017-03-21 22:43:19      阅读:2211      评论:0      收藏:0      [点我收藏+]

标签:code   alt   xxx   xxxxx   class   systemctl   lin   art   bsp   

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

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

技术分享

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

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

  1. systemctl start sshd.service

3. 重启 sshd 服务:

  1. systemctl restart sshd.service

4. 设置服务开启自启:

  1. systemctl enable sshd.service

云服务器 ECS CentOS 7 下重启 sshd 服务操作方法

标签:code   alt   xxx   xxxxx   class   systemctl   lin   art   bsp   

原文地址:http://www.cnblogs.com/lovlos/p/6596796.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!