二维码

Apache无法启动(centos)

750 人阅读 | 时间:2021年12月07日 11:01

我的apache有问题: centos 7 + directamin +自定义构建 版本nginx_apache 我今天早上重新开始服务,但Apache无法启动。 我测试./build所有或仅Apache ....

systemctl start httpd.service
     Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.    
 
 
 
systemctl status httpd.service
     httpd.service - The Apache HTTP Server
   Loaded: loaded (/etc/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Wed 2014-11-12 08:26:54 CET; 3s ago
  Process: 8394 ExecStart=/usr/sbin/httpd $OPTIONS -k start (code=exited, status=1/FAILURE)
 Main PID: 18796 (code=killed, signal=KILL)
 
Nov 12 08:26:54 s024.dedibox.fr systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 12 08:26:54 s024.dedibox.fr systemd[1]: Failed to start The Apache HTTP Server.
Nov 12 08:26:54 s024.dedibox.fr systemd[1]: Unit httpd.service entered failed state.
 
 
journalctl -xn
     -- Logs begin at Sun 2014-11-02 20:23:36 CET, end at Wed 2014-11-12 08:27:08 CET. --
Nov 12 08:27:06 s024.dedibox.fr systemd-logind[1100]: Removed session 15720.
-- Subject: A session 15720 has been terminated
-- Defined-By: systemd
-- Support: http:// lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http:// www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A session with the ID 15720 has been terminated.
Nov 12 08:27:07 s024.dedibox.fr systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http:// lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Nov 12 08:27:08 sd024.dedibox.fr systemd[1]: httpd.service: control process exited, code=exited status=1
Nov 12 08:27:08 sd024.dedibox.fr systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http:// lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Nov 12 08:27:08 sd024.dedibox.fr systemd[1]: Unit httpd.service entered failed state.

谢谢你的帮助

httpd日志:

Wed Nov 12 10:51:08.003271 2014] [ssl:warn] [pid 22968:tid 140503118493760] AH01909: www.example.com:8081:0 server certificate does NOT include an ID which matches the server name 
[Wed Nov 12 10:51:08.003428 2014] [suexec:notice] [pid 22968:tid 140503118493760] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) 
[Wed Nov 12 10:51:08.003443 2014] [core:emerg] [pid 22968:tid 140503118493760] (28)No space left on device: AH00023: Couldn't create the rewrite-map mutex AH00016: Configuration Failed

当我从使用手动Apache 2.4启动和重新启动转变为由systemctl启用的启动和重新启动时,我遇到了此问题。我从未遇到过空间问题,但是无论如何它还是信号灯。

关键在一行中:

Main PID: 18796 (code=killed, signal=KILL)

当我用

httpd -k start

一切正常。但是,当我在systemctl中启用该服务时,信号灯已锁定。

确保您没有在httpd.conf文件中输入任何错误

之后,重新启动服务

服务httpd重新启动


©著作权归作者所有:来自ZhiKuGroup博客作者没文化的原创作品,如需转载,请注明出处,否则将追究法律责任 来源:ZhiKuGroup博客,欢迎分享。

评论专区
  • 昵 称必填
  • 邮 箱选填
  • 网 址选填
◎已有 0 人评论
搜索
作者介绍
30天热门
×
×
本站会员尊享VIP特权,现在就加入我们吧!登录注册×
»
会员登录
新用户注册
×
会员注册
已有账号登录
×