安装ELK的logstash模块时,systemctl start httpd出现错误
问题
systemctl start httpd出现错误
[root@localhost ~]# systemctl start 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或journalctl -x
[root@localhost ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 五 2021-03-05 11:53:10 CST; 24s ago #状态是失败
Docs: man:httpd(8)
man:apachectl(8)
Process: 7169 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 7165 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PI