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
在这里插入图片描述

posted @ 2020-03-14 12:34  _codeRookie  阅读(13293)  评论(0编辑  收藏  举报