Apache无法在Linux上启动,出现此错误

问题描述

我一直在运行apache2,没有任何问题, 但是配置了一些虚拟主机后,它无法重新加载。

我编辑了/ etc / sites-available和/ etc / hosts文件中的文件

我看到以下错误

sudo service apache2 start
Job for apache2.service Failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
┌─[✗]─[rodgers@parrot]─[~]
└──╼ $journalctl -xe
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm','systemd-journal' can see all messages.
      Pass -q to turn off this notice.
Nov 05 21:47:00 parrot brisk-menu[1965]: gdk_window_get_origin: assertion 'GDK_>
Nov 05 21:47:00 parrot brisk-menu[1965]: gdk_window_get_origin: assertion 'GDK_> 
lines 3031-3053/3053 (END)
░░ A start job for unit UNIT has finished successfully.
░░ 
░░ The job identifier is 42.
Nov 05 21:46:39 parrot dbus-daemon[1663]: [session uid=1000 pid=1663] Activating via systemd: service name='org.a11y.Bus' unit='at-sp>
Nov 05 21:46:39 parrot systemd[1629]: Starting Accessibility services bus...
░░ Subject: A start job for unit UNIT has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit UNIT has begun execution.
░░ 
░░ The job identifier is 58.
Nov 05 21:46:39 parrot dbus-daemon[1663]: [session uid=1000 pid=1663] Successfully activated service 'org.a11y.Bus'
Nov 05 21:46:39 parrot systemd[1629]: Started Accessibility services bus.
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ 
░░ A start job for unit UNIT has finished successfully.
░░ 
░░ The job identifier is 58.
Nov 05 21:46:39 parrot dbus-daemon[1663]: [session uid=1000 pid=1663] Activating service name='org.freedesktop.portal.IBus' requested> 
Nov 05 21:46:40 parrot x-session-manager[1655]: WARNING: Unable to find provider '' of required component 'dock'
Nov 05 21:46:42 parrot systemd[1629]: run-user-138.mount: Succeeded.

解决方法

请参阅Apache日志以获取有关该错误的更多详细信息: Ubuntu的/ var / log / apache2 CentOS或Redhat / var / log / httpd