正如标题所说。无论我怎么尝试,Apache 都无法启动,我似乎无法找出问题所在。
systemctl status apache2 报告
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-02-13 18:25:00 UTC; 5min ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 73478 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 227ms
Feb 13 18:25:00 hostname apachectl[73478]: The Apache error log may have more information.
Feb 13 18:25:00 hostname systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Feb 13 18:25:00 hostname systemd[1]: apache2.service: Killing process 73486 (PassengerAgent) with signal SIGKILL.
Feb 13 18:25:00 hostname systemd[1]: apache2.service: Killing process 73509 (PassengerAgent) with signal SIGKILL.
Feb 13 18:25:00 hostname systemd[1]: apache2.service: Killing process 73486 (PassengerAgent) with signal SIGKILL.
Feb 13 18:25:00 hostname systemd[1]: apache2.service: Killing process 73509 (PassengerAgent) with signal SIGKILL.
Feb 13 18:25:00 hostname systemd[1]: apache2.service: Failed with result 'exit-code'.
Feb 13 18:25:00 hostname systemd[1]: apache2.service: Unit process 73486 (PassengerAgent) remains running after unit stopped.
Feb 13 18:25:00 hostname systemd[1]: apache2.service: Unit process 73509 (PassengerAgent) remains running after unit stopped.
Feb 13 18:25:00 hostname systemd[1]: Failed to start The Apache HTTP Server.
journal -xe 报告:
Feb 13 18:34:32 hostname systemd[1]: Starting The Apache HTTP Server...
░░ Subject: A start job for unit apache2.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit apache2.service has begun execution.
░░
░░ The job identifier is 1774.
Feb 13 18:34:32 hostname apachectl[75877]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.vhost:7
Feb 13 18:34:32 hostname apachectl[75874]: Action 'start' failed.
Feb 13 18:34:32 hostname apachectl[75874]: The Apache error log may have more information.
Feb 13 18:34:32 hostname systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit apache2.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Feb 13 18:34:32 hostname systemd[1]: apache2.service: Killing process 75882 (PassengerAgent) with signal SIGKILL.
Feb 13 18:34:32 hostname systemd[1]: apache2.service: Killing process 75905 (PassengerAgent) with signal SIGKILL.
Feb 13 18:34:32 hostname systemd[1]: apache2.service: Killing process 75882 (PassengerAgent) with signal SIGKILL.
Feb 13 18:34:32 hostname systemd[1]: apache2.service: Killing process 75905 (PassengerAgent) with signal SIGKILL.
Feb 13 18:34:32 hostname systemd[1]: apache2.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit apache2.service has entered the 'failed' state with result 'exit-code'.
Feb 13 18:34:32 hostname systemd[1]: apache2.service: Unit process 75882 (PassengerAgent) remains running after unit stopped.
Feb 13 18:34:32 hostname systemd[1]: apache2.service: Unit process 75905 (PassengerAgent) remains running after unit stopped.
Feb 13 18:34:32 hostname systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit apache2.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit apache2.service has finished with a failure.
░░
░░ The job identifier is 1774 and the job result is failed.
/var/log/apache/error.log 列出以下内容:
[ 2023-02-13 18:34:32.5078 75882/7f66a782b700 age/Cor/CoreMain.cpp:531 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2023-02-13 18:34:32.5079 75882/7f66a8164980 age/Cor/CoreMain.cpp:900 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2023-02-13 18:34:32.5080 75882/7f66a6fa9700 Ser/Server.h:816 ]: [ServerThr.2] Freed 128 spare client objects
[ 2023-02-13 18:34:32.5080 75882/7f66a6fa9700 Ser/Server.h:464 ]: [ServerThr.2] Shutdown finished
[ 2023-02-13 18:34:32.5081 75882/7f66a782b700 Ser/Server.h:816 ]: [ServerThr.1] Freed 128 spare client objects
[ 2023-02-13 18:34:32.5081 75882/7f66a782b700 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished
[ 2023-02-13 18:34:32.5082 75887/7f81c0c56700 age/Ust/UstRouterMain.cpp:421 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2023-02-13 18:34:32.5082 75887/7f81c0d48980 age/Ust/UstRouterMain.cpp:491 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2023-02-13 18:34:32.5082 75887/7f81b3fff700 Ser/Server.h:816 ]: [UstRouterApiServer] Freed 0 spare client objects
[ 2023-02-13 18:34:32.5083 75887/7f81b3fff700 Ser/Server.h:464 ]: [UstRouterApiServer] Shutdown finished
[ 2023-02-13 18:34:32.5083 75887/7f81c0c56700 Ser/Server.h:464 ]: [UstRouter] Shutdown finished
[ 2023-02-13 18:34:32.5087 75882/7f66a6727700 Ser/Server.h:816 ]: [ApiServer] Freed 0 spare client objects
[ 2023-02-13 18:34:32.5087 75882/7f66a6727700 Ser/Server.h:464 ]: [ApiServer] Shutdown finished
[ 2023-02-13 18:34:32.5088 75887/7f81c0d48980 age/Ust/UstRouterMain.cpp:523 ]: Passenger UstRouter shutdown finished
当我使用 apachectl configtest 和 apachectl -t 检查配置时,它们都报告
Syntax OK
我尝试重新安装,但结果仍然相同。我还能检查哪些因素可能导致此故障?*为了匿名,主机名是我的服务器名称