TASK [start httpd service] *****************************************************************************************
fatal: [192.168.118.18]: 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”}
可用尝试把受控制的那台服务器,所占用的端口给kill掉
[root@server conf]# systemctl status httpd
● httpd.service
Loaded: not-found (Reason: No such file or directory)
Active: failed (Result: exit-code) since 日 2021-08-08 17:01:31 CST; 4h 27min ago
Main PID: 67778 (code=exited, status=1/FAILURE)
8月 08 17:01:30 server systemd[1]: Starting The Apache HTTP Server...
8月 08 17:01:30 server httpd[67778]: (98)Address already in use: AH00072: make_sock: could not bind to addr...:]:80
8月 08 17:01:30 server httpd[67778]: (98)Address already in use: AH00072: make_sock: could not bind to addr....0:80
8月 08 17:01:30 server httpd[67778]: no listening sockets available, shutting down
8月 08 17:01:30 server httpd[67778]: AH00015: Unable to open logs
8月 08 17:01:31 server systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
8月 08 17:01:31 server systemd[1]: Failed to start The Apache HTTP Server.
8月 08 17:01:31 server systemd[1]: Unit httpd.service entered failed state.
8月 08 17:01:31 server systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@server conf]# netstat -napt | grep :80
tcp 0 0 192.168.118.17:80 0.0.0.0:* LISTEN 1593/(squid-1)
[root@server conf]# kill -9 1593
[root@server conf]# netstat -napt | grep :80