怎么了?我无法启动 apache2?使用命令:/etc/init.d/apache2 start

怎么了?我无法启动 apache2?使用命令:/etc/init.d/apache2 start
 * Starting web server apache2                                                  
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(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.
 * 
 * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems

答案1

Address already in use: AH00072: make_sock: could not bind to address [::]:80

根据错误提示,您已经有一个监听 80 端口的服务。请尝试:

service apache2 restart

可能是 apache 已在运行,因此您可以尝试重新启动它。如果仍然有问题,请检查系统中是否有其他可能使用端口 80 的进程。

相关内容