Apache 服务器未启动 'Address already in use' 错误 (98)

Apache server not starting 'Address already in use' ERROR (98)

过去几天我一直在尝试用几种不同的方法解决这个问题,但没有结果。

以下是我 运行 试图收集有关该问题的更多信息的所有最后命令的副本:

2019 from 181.167.101.245 bitnami@ip-172-31-2-74:~$ sudo service apache2 restart
* Restarting web server apache2
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:8
0 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.
0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. > [fail] * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems bitnami@ip-172-31-2-74:~$ sudo netstat -nlp | grep 80 tcp6 0 0 :::80 :::*
LISTEN
13456/httpd.bin unix 2 [ ACC ] SEQPACKET LISTENING 1680 402/systemd-udevd /run/udev/control

非常感谢任何形式的帮助,如果需要更多信息,请告诉我。

一如既往地提前致谢。

这里是 Bitnami 工程师,

如果您在我们的任何应用程序中使用 Bitnami 即用型实例,它们通常包括 Apache 来为应用程序提供服务。如果您对 /opt/bitnami 目录中的 Apache 配置文件进行任何更改,您需要使用我们提供的 ctlscript.sh 文件重新启动 Apache 服务。

sudo /opt/bitnami/ctlscript.sh

您可以在这里了解更多信息:

https://docs.bitnami.com/aws/faq/administration/control-services/