我执行了 sudo systemctl status apache2,这是答复...
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-11-18 21:55:22 EST; 3h 42min ago
Docs: https://httpd.apache.org/docs/2.4/
Nov 18 21:55:20 T540p systemd[1]: Starting The Apache HTTP Server...
Nov 18 21:55:22 T540p apachectl[973]: [Thu Nov 18 21:55:22.715512 2021] [core:warn] [pid 973] AH00111:>
Nov 18 21:55:22 T540p apachectl[973]: apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: D>
Nov 18 21:55:22 T540p apachectl[941]: Action 'start' failed.
Nov 18 21:55:22 T540p apachectl[941]: The Apache error log may have more information.
Nov 18 21:55:22 T540p systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILU>
Nov 18 21:55:22 T540p systemd[1]: apache2.service: Failed with result 'exit-code'.
Nov 18 21:55:22 T540p systemd[1]: Failed to start The Apache HTTP Server.
我去 /etc/apache2/apache2.conf 检查了第 80 行,似乎那里没什么问题。还尝试重新加载 apache2。我得到了这个回复... apache2.service 未激活,无法重新加载。
我不想重新安装操作系统,因为我有双启动。如能得到任何帮助我将不胜感激。