我对apache有一个问题: centos 7+ directamin +定制版本nginx_apache,我今早重新启动了服务,而apache没有启动。我测试。/建立全部或只有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发布于 2014-11-12 10:13:22
这个问题实际上并不是因为磁盘上缺少空间,而是因为缺少信号量。
有关详细信息,请参阅http://major.io/2007/08/24/apache-no-space-left-on-device-couldnt-create-accept-lock/。
非常感谢你的帮助
发布于 2016-11-07 12:41:38
确保您没有在httpd.conf文件中输入任何错误条目
之后,重新启动服务。
服务httpd重新启动
发布于 2019-09-05 00:35:23
当我从使用手动Apache2.4Start并重新启动到由systemctl启用时,我就遇到了这个问题。我从来没有空间问题,但结果是信号量。
键在行中:
Main PID: 18796 (code=killed, signal=KILL)当我用
httpd -k start一切都很好。但是,当我在systemctl中启用服务时,信号量就锁定了。
我按照下面的说明修正了这个问题:什么是信号量以及如何为Apache清除它们
另外,这里还有一个用于清除信号量的cron脚本:自动清除信号量的脚本
https://serverfault.com/questions/643704
复制相似问题