Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache崩溃AH00295:捕获SIGTERM,正在关闭[systemctl]_Apache_Systemctl - Fatal编程技术网

Apache崩溃AH00295:捕获SIGTERM,正在关闭[systemctl]

Apache崩溃AH00295:捕获SIGTERM,正在关闭[systemctl],apache,systemctl,Apache,Systemctl,我从源代码构建了apache-httpd-2.4.20,并正确安装 我已经在/etc/systemd/system下创建了apphttpd.service 脚本 [Unit] Description=Apache Web Server After=network.target remote-fs.target nss-lookup.target [Service] Type=simple TimeoutStartSec=600 PIDFile=/usr/local/apache/logs/ht

我从源代码构建了apache-httpd-2.4.20,并正确安装

我已经在
/etc/systemd/system
下创建了
apphttpd.service

脚本

[Unit]
Description=Apache Web Server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=simple
TimeoutStartSec=600
PIDFile=/usr/local/apache/logs/httpd.pid
ExecStart=/usr/local/apache/bin/apachectl -k start
ExecStop=/usr/local/apache/bin/apachectl -k stop
ExecReload=/usr/local/apache/bin/apachectl -k graceful
Restart=on-abort
PrivateTmp=true
LimitNOFILE=infinity
#User=root
#Group=root

[Install]
WantedBy=multi-user.target
当我执行
systemctl start apphttpd
时,收到启动Apache Web服务器的消息

状态日志

**systemctl status -l apphttpd**

apphttpd.service - Apache Web Server
   Loaded: loaded (/etc/systemd/system/apphttpd.service; enabled)
   Active: inactive (dead) since Wed 2018-06-13 21:45:20 SGT; 14min ago
  Process: 112124 ExecStop=/usr/local/apache/bin/apachectl -k stop (code=exited, status=0/SUCCESS)
  Process: 112118 ExecStart=/usr/local/apache/bin/apachectl -k start (code=exited, status=0/SUCCESS)
 Main PID: 112118 (code=exited, status=0/SUCCESS)

Jun 13 21:45:20 <host> systemd[1]: Started Apache Web Server.
但是,如果我从/usr/local/apache/bin/apachectl-k start启动服务,那么服务将正确启动并能够获得响应

[Wed Jun 13 21:46:25.146698 2018] [core:debug] [pid 112229:tid 140320724187008] log.c(1546): AH02639: Using SO_REUSEPORT: yes (1)
[Wed Jun 13 21:46:25.146711 2018] [mpm_worker:debug] [pid 112229:tid 140320724187008] worker.c(1874): AH00294: Accept mutex: sysvsem (default: sysvsem)

我的apphttpd.service脚本是否存在任何问题,是否存在访问问题?提前感谢您的建议和帮助。

这应该在unix StackExchangeTanks zack上,也在那里@扎克6849
[Wed Jun 13 21:46:25.146698 2018] [core:debug] [pid 112229:tid 140320724187008] log.c(1546): AH02639: Using SO_REUSEPORT: yes (1)
[Wed Jun 13 21:46:25.146711 2018] [mpm_worker:debug] [pid 112229:tid 140320724187008] worker.c(1874): AH00294: Accept mutex: sysvsem (default: sysvsem)