Redirecting to /bin/systemctl restart sshd.service

在雲服務器 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章