【发布时间】:2020-12-21 05:11:36
【问题描述】:
我目前正在尝试安装和运行 apache2,我可以安装它但不能使用 'sudo systemctl status apache2' 对其进行配置,并且出现此错误:
systemd[1]: Starting The Apache HTTP Server...
apachectl[16656]: (98)Address already in use: AH00072: make_sock: could not bind to ad>
apachectl[16656]: (98)Address already in use: AH00072: make_sock: could not bind to ad>
apachectl[16656]: no listening sockets available, shutting down
apachectl[16656]: AH00015: Unable to open logs
apachectl[16646]: The Apache error log may have more information.
systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
systemd[1]: apache2.service: Failed with result 'exit-code'.
systemd[1]: Failed to start The Apache HTTP Server.
lines 1-15/15 (END)
所以,当我用谷歌搜索这个错误时,我发现我的端口 80 可能已经被使用并尝试了 'ss --listening --tcp --numeric --processes' 来找出正在使用端口 80/tcp 的内容,我使用这个命令 sudo kill -9 也有点搞砸了,但现在没有一个输出说 80。
非常感谢您的宝贵帮助。
【问题讨论】:
-
嗨,这个问题与编程无关,因此它可能属于其他 StackExchange 站点(可能是 ServerFault.com)。从日志跟踪
(98)Address already in use: AH00072: make_sock: could not bind to ad>我猜问题是Apache 被放在端口上,该端口被机器上运行的其他东西占用。 -
是的,我发现有人这么说,我尝试使用 sudo kill -9,但它仍然不起作用,我想也许我搞砸了,因为现在我看不到在80 端口了