![](/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.