Apache2 无法启动,错误代码

Apache2 无法启动,错误代码

刚接触 ubunutu,为 Kodi 安装了 mysql 并进行了配置,现在我正在使用 Owncloud,在安装过程中,Apache 无法正常使用。journalctl -xe结果如下:

-- Unit apache2.service has begun starting up.
Sep 01 07:50:25 Kodi-Server apachectl[16967]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. S
Sep 01 07:50:25 Kodi-Server apachectl[16967]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Sep 01 07:50:25 Kodi-Server apachectl[16967]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Sep 01 07:50:25 Kodi-Server apachectl[16967]: no listening sockets available, shutting down    
Sep 01 07:50:25 Kodi-Server apachectl[16967]: AH00015: Unable to open logs    
Sep 01 07:50:25 Kodi-Server apachectl[16967]: Action 'start' failed.    
Sep 01 07:50:25 Kodi-Server apachectl[16967]: The Apache error log may have more information.    
Sep 01 07:50:25 Kodi-Server systemd[1]: apache2.service: Control process exited, code=exited status=1    
Sep 01 07:50:25 Kodi-Server systemd[1]: apache2.service: Failed with result 'exit-code'.    
Sep 01 07:50:25 Kodi-Server systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit apache2.service has failed.
-- 
-- The result is RESULT.

以下是 lsof -i:80 的结果

COMMAND  PID     USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
nginx   7241     root    6u  IPv4 1656474      0t0  TCP *:http (LISTEN)
nginx   7241     root    7u  IPv6 1656475      0t0  TCP *:http (LISTEN)
nginx   7242 www-data    6u  IPv4 1656474      0t0  TCP *:http (LISTEN)
nginx   7242 www-data    7u  IPv6 1656475      0t0  TCP *:http (LISTEN)
nginx   7243 www-data    6u  IPv4 1656474      0t0  TCP *:http (LISTEN)
nginx   7243 www-data    7u  IPv6 1656475      0t0  TCP *:http (LISTEN)
nginx   7244 www-data    6u  IPv4 1656474      0t0  TCP *:http (LISTEN)
nginx   7244 www-data    7u  IPv6 1656475      0t0  TCP *:http (LISTEN)
nginx   7245 www-data    6u  IPv4 1656474      0t0  TCP *:http (LISTEN)
nginx   7245 www-data    7u  IPv6 1656475      0t0  TCP *:http (LISTEN)

感谢您的帮助。

相关内容