当前位置: 代码迷 >> 综合 >> Unable to start service httpd: Job for httpd.service failed because the control process exited with
  详细解决方案

Unable to start service httpd: Job for httpd.service failed because the control process exited with

热度:71   发布时间:2023-12-16 01:31:59.0

在执行playbook启动httpd时报错:

TASK [test_app : start service] *****************************************************************************************************************************
fatal: [192.168.126.129]: FAILED! => {"changed": false, "msg": "Unable to start service httpd: Job for httpd.service failed because the control process exited with error code. See \"systemctl status httpd.service\" and \"journalctl -xe\" for details.\n"}

因为机器中同时运行了nginx,80端口被占用了,所以此时启动时就会报错,从报错信息可以看出时端口问题。

将nginx服务停掉之后重新执行即可。

  相关解决方案