Centos 7 上的 Apache 突然死掉
Apache on Centos 7 abruptly dies
几天以来,我的 Centos 7 服务器上的 Apache 在我重新启动后的某个时间死掉了。我什至尝试重新启动机器无济于事。
休息后它立即响应,但过了一会儿它停止响应,如果我执行:
sudo systemctl status httpd.service
我得到:
httpd.service - The Apache HTTP Server Loaded: loaded
(/usr/lib/systemd/system/httpd.service; disabled) Active: inactive
(dead)
我通过重新安装 Apache 解决了这个问题。
他们在 https://bugs.archlinux.org/task/47110 报告使用的覆盖进入文件 /etc/logwatch/conf/override.conf
[Service]
Restart=always
RestartSec=10
ExecReload=/usr/bin/httpd -k graceful
ExecStart=
ExecStart=/usr/bin/httpd -k start -DFOREGROUND
几天以来,我的 Centos 7 服务器上的 Apache 在我重新启动后的某个时间死掉了。我什至尝试重新启动机器无济于事。 休息后它立即响应,但过了一会儿它停止响应,如果我执行:
sudo systemctl status httpd.service
我得到:
httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled) Active: inactive (dead)
我通过重新安装 Apache 解决了这个问题。
他们在 https://bugs.archlinux.org/task/47110 报告使用的覆盖进入文件 /etc/logwatch/conf/override.conf
[Service]
Restart=always
RestartSec=10
ExecReload=/usr/bin/httpd -k graceful
ExecStart=
ExecStart=/usr/bin/httpd -k start -DFOREGROUND