启动Apache服务时报错,Job for httpd.service failed because the control

安装完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.service 查看服务的状态,发现80端口被占用

  ps -ef|grep httpd察看占用的进程或者用netstat -lnp|grep 80 

 发现是nginx占用了80端口,找到以后kill 1069

再启动httpd服务就好了


版权声明:本文为qq_39462824原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。