/ etc中的user@user-desktop:~$ sudo service apache2 restart Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. user@user-desktop:~$ systemctl status apache2.service ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: failed (Result: exit-code) since Tue 2018-09-18 16:45:15 IST; 7s ago Process: 12099 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) Sep 18 16:45:14 user-desktop systemd[1]: Starting The Apache HTTP Server... Sep 18 16:45:14 user-desktop apachectl[12099]: apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line
14 9月18日16:45:15用户桌面apachectl [12099]:操作“启动”失败。 9月18日16:45:15用户桌面apachectl [12099]:Apache错误日志可能包含更多信息。 9月18日16:45:15用户桌面systemd [1]:apache2.service:控制进程已退出,代码=退出状态= 1 9月18日16:45:15 user-desktop systemd [1]:apache2.service:失败,返回结果为“退出代码”。 9月18日16:45:15 user-desktop systemd [1]:无法启动Apache HTTP Server。