我是靠谱客的博主 怕孤单大地,最近开发中收集的这篇文章主要介绍Job for httpd.service failed because the control process exited with error code. See "systemctl 解决方案,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
启动 httpd 服务时报错
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
首先 systemctl status httpd 查看下状态:
8月 14 16:57:26 10-255-0-230 httpd[28061]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
8月 14 16:57:26 10-255-0-230 httpd[28061]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
8月 14 16:57:26 10-255-0-230 httpd[28061]: no listening sockets available, shutting down
8月 14 16:57:26 10-255-0-230 httpd[28061]: AH00015: Unable to open logs
8月 14 16:57:26 10-255-0-230 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
8月 14 16:57:26 10-255-0-230 kill[28062]: kill: cannot find process ""
8月 14 16:57:26 10-255-0-230 systemd[1]: httpd.service: control process exited, code=exited status=1
8月 14 16:57:26 10-255-0-230 systemd[1]: Failed to start The Apache HTTP Server.
8月 14 16:57:26 10-255-0-230 systemd[1]: Unit httpd.service entered failed state.
8月 14 16:57:26 10-255-0-230 systemd[1]: httpd.service failed.
更具状态看出 80 端口被占用
netstat -antlp | grep 80
了解一下
原来是 nginx 占用了端口
停止即可
最后
以上就是怕孤单大地为你收集整理的Job for httpd.service failed because the control process exited with error code. See "systemctl 解决方案的全部内容,希望文章能够帮你解决Job for httpd.service failed because the control process exited with error code. See "systemctl 解决方案所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复