我是靠谱客的博主 专一网络,这篇文章主要介绍centos7启动httpd服务失败:Job for httpd.service failed because the control process exited with error code.,现在分享给大家,希望可以做个参考。
centos7启动httpd命令有两个可以用
service httpd start systemctl start httpd.service
如果出现如下报错
Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details.
应该是端口被占用,查看端口
netstat -antlp | grep 80

是nginx占用了端口
systemctl stop nginx.service 停用nginx即可
如果想开机关闭nginx则输入命令 systemctl disable nginx

最后
以上就是专一网络最近收集整理的关于centos7启动httpd服务失败:Job for httpd.service failed because the control process exited with error code.的全部内容,更多相关centos7启动httpd服务失败:Job内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复