文章詳情頁(yè)
javascript - service ssh restart報(bào)錯(cuò)
瀏覽:214日期:2023-08-22 18:13:16
問(wèn)題描述
[root@VM_10_237_centos ~]# service ssh restartRedirecting to /bin/systemctl restart ssh.serviceFailed to restart ssh.service: Unit not found.
問(wèn)題解答
回答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)下如何通過(guò)java獲取客戶端ip和mac地址?下一條:html - ubuntu 上掛了ngix 被大量奇怪的ip訪問(wèn)該如何處理?allow_host 是全開的。
相關(guān)文章:
1. boot2docker無(wú)法啟動(dòng)2. docker-compose中volumes的問(wèn)題3. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””4. nignx - docker內(nèi)nginx 80端口被占用5. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.6. javascript - mock.js可以存儲(chǔ)數(shù)據(jù)嗎7. java - SSH框架中寫分頁(yè)時(shí)service層中不能注入分頁(yè)類8. golang - 用IDE看docker源碼時(shí)的小問(wèn)題9. docker api 開發(fā)的端口怎么獲取?10. dockerfile - 為什么docker容器啟動(dòng)不了?
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備