无法在 Ubuntu 18.04 上启动 Apache

无法在 Ubuntu 18.04 上启动 Apache

我最近从 Ubuntu 16.04 升级到了 18.04

当我的 Apache 在最初几天工作时,它突然停止了,而我找不到原因。

service apache2 status

给出:

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; generated)
   Active: active (exited) since Tue 2021-02-23 16:45:59 EET; 10s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8807 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 8829 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)

使用以下命令检查日志:journalctl -ex

-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has begun shutting down.
Φεβ 23 16:45:59 Sakis-Desktop systemd[1]: Stopped LSB: Apache2 web server.
-- Subject: Unit apache2.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has finished shutting down.
Φεβ 23 16:45:59 Sakis-Desktop systemd[1]: Starting LSB: Apache2 web server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has begun starting up.
Φεβ 23 16:45:59 Sakis-Desktop systemd[1]: Started LSB: Apache2 web server.
-- Subject: Unit apache2.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has finished starting up.
-- 
-- The start-up result is RESULT.
Φεβ 23 16:45:59 Sakis-Desktop sudo[8801]: pam_unix(sudo:session): session closed for user root
Φεβ 23 16:47:59 Sakis-Desktop sudo[8880]:    sakis : TTY=pts/1 ; PWD=/home/sakis ; USER=root ; COMMAND=/usr/sbin/service apache2 restart
Φεβ 23 16:47:59 Sakis-Desktop sudo[8880]: pam_unix(sudo:session): session opened for user root by (uid=0)
Φεβ 23 16:47:59 Sakis-Desktop systemd[1]: Stopping LSB: Apache2 web server...
-- Subject: Unit apache2.service has begun shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has begun shutting down.
Φεβ 23 16:47:59 Sakis-Desktop systemd[1]: Stopped LSB: Apache2 web server.
-- Subject: Unit apache2.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has finished shutting down.
Φεβ 23 16:47:59 Sakis-Desktop systemd[1]: Starting LSB: Apache2 web server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has begun starting up.
Φεβ 23 16:47:59 Sakis-Desktop systemd[1]: Started LSB: Apache2 web server.
-- Subject: Unit apache2.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has finished starting up.
-- 
-- The start-up result is RESULT.

还尝试检查端口 80 是否已被占用,但并未被占用。欢迎提出任何想法。

相关内容