文章詳情頁(yè)
javascript - service ssh restart報(bào)錯(cuò)
瀏覽:95日期: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 是全開(kāi)的。
相關(guān)文章:
1. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問(wèn)題2. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.3. Span標(biāo)簽4. javascript - 請(qǐng)教空白文本節(jié)點(diǎn)的問(wèn)題5. extra沒(méi)有加載出來(lái)6. css - 關(guān)于border-image7. mysql - 為什么where條件中or加索引不起作用?8. python - linux怎么在每天的凌晨2點(diǎn)執(zhí)行一次這個(gè)log.py文件9. mysql - php 如何網(wǎng)址中出現(xiàn)該頁(yè)標(biāo)題?10. django進(jìn)行數(shù)據(jù)庫(kù)的查詢
排行榜

熱門(mén)標(biāo)簽