1. 程式人生 > >雲服務器 ECS CentOS 7 重啟 sshd 服務

雲服務器 ECS CentOS 7 重啟 sshd 服務

開機自啟 判斷 yun art systemctl jpg html 技術分享 tps

  1. 通過下圖判斷 sshd 服務是否啟動。如果沒有啟動,執行命令 systemctl start sshd.service 啟動該服務。技術分享

  2. 執行命令 systemctl restart sshd.service 重啟 sshd 服務。

  3. 執行命令 systemctl enable sshd.service 設置服務開機自啟。

參考 : https://help.aliyun.com/knowledge_detail/41501.html

雲服務器 ECS CentOS 7 重啟 sshd 服務