重啟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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM