在尝试重新启动httpd服务时,系统返回以下错误信息:
[root@shizhanxia.com ~]# time systemctl restart httpd Job for httpd.service failed because a fatal signal was delivered to the control process. See "systemctl status httpd.service" and "journalctl -xe" for details.
进一步检查httpd服务的状态,发现服务未能成功启动:
[root@shizhanxia.com ~]# systemctl status httpd.service httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: signal) since Mon 2018-01-08 17:03:30 KST; 22s ago Docs: man:httpd(8) man:apachectl(8) Process: 20863 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=KILL) Main PID: 20863 (code=killed, signal=KILL) CGroup: /system.slice/httpd.service Jan 08 17:00:29 shizhanxia.com systemd[1]: Starting The Apache HTTP Server... Jan 08 17:01:59 shizhanxia.com systemd[1]: httpd.service start operation timed out. Terminating. Jan 08 17:03:30 shizhanxia.com systemd[1]: httpd.service stop-final-sigterm timed out. Killing. Jan 08 17:03:30 shizhanxia.com systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL Jan 08 17:03:30 shizhanxia.com systemd[1]: Failed to start The Apache HTTP Server. Jan 08 17:03:30 shizhanxia.com systemd[1]: Unit httpd.service entered failed state. Jan 08 17:03:30 shizhanxia.com systemd[1]: httpd.service failed.
解决方案
1.检查并加载mod_systemd.so模块
首先,确认/etc/httpd/conf.modules.d/00-systemd.conf文件是否存在,并检查mod_systemd.so是否已加载:
原创文章,作者:保哥,如若转载,请注明出处:https://www.shizhanxia.com/1902.html