![](/img/trans.png)
[英]Unable to start Apache2: Job for apache2.service failed because the control process exited with error code
[英]apache2 service Failed on restart - Failed to start apache2.service: Unit not found
當我嘗試重新啟動apache服務器時,得到以下響應。
重定向到/ bin / systemctl start apache2.service
無法啟動apache2.service:找不到單元。
您正在使用不同的Apache服務。
如果使用相同的服務,請運行此命令。
systemctl restart httpd
要么
apachectl restart
如果您使用的是最新的Linux,請嘗試以下操作-使用以下命令檢查服務名稱
# systemctl list-units --type service
上面的命令將列出所有服務,找到要重新啟動的正確服務名稱-使用以下命令重新啟動或重新加載服務,例如,我使用重新啟動服務httpd24-httpd.service
# systemctl restart httpd24-httpd.service
or # systemctl reload httpd24-httpd.service
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.