重啓ssh服務出現Redirecting to /bin/systemctl restart sshd.service

轉自:https://blog.csdn.net/caijunfen/article/details/70599138

CentOs 重啓ssh服務的命令如下:

# service sshd restart

出現:Redirecting to /bin/systemctl restart sshd.service

 以下轉自:Redirecting to /bin/systemctl restart sshd.service

1. 查看 sshd 服務是否啓動:

???704.jpg

看到上述信息就可以確定是啓動了。

2. 如果沒有啓動,則需要啓動該服務:


  1. systemctl start sshd.service

3. 重啓 sshd 服務:


  1. systemctl restart sshd.service

4. 設置服務開啓自啓:


  1. systemctl enable sshd.service
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章