gpt4 book ai didi

apache - 无法在 ubuntu 18.04 上启动 Apache HTTP 服务器

转载 作者:行者123 更新时间:2023-12-04 11:20:46 25 4
gpt4 key购买 nike

我正在尝试在我的 ubuntu 18.04 上创建一个 Web 服务器,所以我安装了 Apache2
但我无法启动它。
这是我运行 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 Sat 2020-02-22 13:58:09 CET; 34s ago
Process: 2791 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Feb 22 13:58:09 moemen apachectl[2791]: AH00558: apache2: Could not reliably determine the server's
Feb 22 13:58:09 moemen apachectl[2791]: (98)Address already in use: AH00072: make_sock: could not b
Feb 22 13:58:09 moemen apachectl[2791]: (98)Address already in use: AH00072: make_sock: could not b
Feb 22 13:58:09 moemen apachectl[2791]: no listening sockets available, shutting down
Feb 22 13:58:09 moemen apachectl[2791]: AH00015: Unable to open logs
Feb 22 13:58:09 moemen apachectl[2791]: Action 'start' failed.
Feb 22 13:58:09 moemen apachectl[2791]: The Apache error log may have more information.
Feb 22 13:58:09 moemen systemd[1]: apache2.service: Control process exited, code=exited status=1
Feb 22 13:58:09 moemen systemd[1]: apache2.service: Failed with result 'exit-code'.
Feb 22 13:58:09 moemen systemd[1]: Failed to start The Apache HTTP Server.

我是新手,你能帮帮我吗

最佳答案

我也面临同样的问题。
第一次检查

$ sudo systemctl status nginx
如果 nginx处于事件状态,然后停止
$ sudo systemctl stop nginx
然后再次尝试在不同的终端启动 apache2 服务器。

关于apache - 无法在 ubuntu 18.04 上启动 Apache HTTP 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60352565/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com