linux – 无法在CentOS 7上重启httpd.service(Apache服务器)

前端之家收集整理的这篇文章主要介绍了linux – 无法在CentOS 7上重启httpd.service(Apache服务器)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在centOS apache服务器上使用了“service httpd restart”命令,发生以下错误

Job for httpd.service Failed because the control process exited with error code. See “systemctl status httpd.service and “journalctl -xe” for details.

我该如何解决这个错误?我尝试使用“yum reinstall httpd”命令重新安装我的httpd,但它不起作用.

解决方法

Job for httpd.service Failed because the control process exited with error code. See “systemctl status httpd.service and “journalctl -xe” for details.

(empahsis mine)

How do I solve this error?

>仔细阅读错误消息,请注意它提供了有关如何收集更多信息的有用信息,特别是它提到了应该运行的2个命令

> systemctl status httpd.service
> journalctl -xe

>运行有用的错误消息中提到的命令(后者可能最有用),但同时查看两者.>仔细阅读命令提供的信息内容.它将包含可用于解决问题的信息.

原文链接:https://www.f2er.com/linux/399473.html

猜你在找的Linux相关文章