我最近运行了apt 升级,虽然一切看起来都很好,但现在当我尝试运行 apache2 时,我遇到了以下问题,
\n$ sudo systemctl start apache2\nJob for apache2.service failed because the control process exited with error code.\nSee "systemctl status apache2.service" and "journalctl -xe" for details.\nRun Code Online (Sandbox Code Playgroud)\n$ systemctl status apache2\n\xe2\x97\x8f apache2.service - The Apache HTTP Server\n Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)\n Active: failed (Result: exit-code) since Thu 2022-02-10 13:35:40 PST; 30s ago\n Docs: https://httpd.apache.org/docs/2.4/\n Process: 6919 ExecStart=/usr/sbin/apachectl start (code=exited, status=139)\n\nFeb 10 13:35:39 Mythbox systemd[1]: Starting The Apache HTTP Server...\nFeb 10 13:35:40 Mythbox apachectl[6919]: Segmentation fault (core dumped)\nFeb 10 13:35:40 Mythbox apachectl[6919]: Action 'start' failed.\nFeb 10 13:35:40 Mythbox apachectl[6919]: The Apache error log may have more information.\nFeb 10 13:35:40 Mythbox systemd[1]: apache2.service: Control process exited, code=exited, status=139/n/a\nFeb 10 13:35:40 Mythbox systemd[1]: apache2.service: Failed with result 'exit-code'.\nFeb 10 13:35:40 Mythbox systemd[1]: Failed to start The Apache HTTP Server.\nRun Code Online (Sandbox Code Playgroud)\n~$ sudo apachectl configtest\nSyntax OK\nRun Code Online (Sandbox Code Playgroud)\n错误日志中没有任何内容,并且日志级别设置为调试,因此无论发生什么情况都不会发生这种情况。我已经尝试过apt reinstall apache2但这没有什么区别。
\n此时我陷入了该怎么做才能弄清楚发生了什么事的困境。有任何想法吗?
\ntin*_*ury 11
凭着直觉,我检查并禁用了所有 apache2 mod,然后慢慢地逐一启用它们,直到找到导致崩溃的那个。
原来是 apache2 试图加载 php7.4 和 php8.1 导致崩溃。只需加载一个就可以了。
| 归档时间: |
|
| 查看次数: |
4094 次 |
| 最近记录: |