文章詳情頁
javascript - service ssh restart報(bào)錯(cuò)
瀏覽:121日期:2023-08-22 18:13:16
問題描述
[root@VM_10_237_centos ~]# service ssh restartRedirecting to /bin/systemctl restart ssh.serviceFailed to restart ssh.service: Unit not found.
問題解答
回答1:service ssh restart是centos 6的命令。你這是centos 7。應(yīng)該是systemctl restart sshd
回答2:systemctl restart sshd.service或service sshd restart
回答3:centos是sshd。ubuntu是ssh
標(biāo)簽:
JavaScript
上一條:chrome - linux系統(tǒng)下如何通過java獲取客戶端ip和mac地址?下一條:html - ubuntu 上掛了ngix 被大量奇怪的ip訪問該如何處理?allow_host 是全開的。
相關(guān)文章:
1. index.php錯(cuò)誤,求指點(diǎn)2. python - PyQt5 如何獲得標(biāo)題?3. python小白,問一個(gè)關(guān)于可變類型和不可變類型底層的問題4. nginx和web服務(wù)都跑在docker容器里時(shí),nginx負(fù)載均衡如何配置服務(wù)的IP地址5. node.js - 微信小程序 +nodejs+socket.io bug6. html5 - qq空間播放視頻的返回?cái)?shù)據(jù)7. dict - Python判斷字典中是否有重復(fù)值8. MYSQL新建用戶設(shè)置可以遠(yuǎn)程訪問的問題9. html5 - 微信瀏覽器視頻播放失敗10. python運(yùn)行后沒有任何反饋要怎么排查
排行榜

熱門標(biāo)簽