我是靠谱客的博主 怕孤单大地,这篇文章主要介绍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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复