当前位置:   article > 正文

http启动(重启)报错:Job for httpd.service failed because the control process exited with error code.

job for httpd.service failed because the control process exited with error c

http启动(重启)报错:Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

【问题】

1、http启动(重启)报错

systemctl start httpd

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  • 1
  • 2
  • 3

在这里插入图片描述

【解决方案】

1、用systemctl status httpd.service查看,发现80端口被占用

systemctl status httpd.service
  • 1

在这里插入图片描述

2、用netstat -antlp | grep 80查看端口被哪一服务占用

netstat -antlp | grep 80
  • 1

在这里插入图片描述
由图看到是squid服务占用了80端口

3、关闭squid服务,再次启动,成功!

[root@web1 ~]# systemctl stop squid.service 
[root@web1 ~]# systemctl start httpd
  • 1
  • 2

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/155319
推荐阅读
相关标签
  

闽ICP备14008679号