大家好,我希望你们帮助我。我的问题是apache 2没有运行,尽管我编写了命令service apache2 start或/etc/init.d/apache2 restart。
当我进入本地主机时,我看到了这个

他在终点站给了我这个:
* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 0.0.0.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.
[fail]
* The apache2 instance did not start within 20 seconds. Please read the log files to discover problems发布于 2016-02-06 21:18:01
端口80已经被lighttpd服务器使用。(netstat -an \ grep :80)
/etc/init.d/lighttpd stop或
service lighttpd stop查看lighttpd进程是否正在运行:
ps -ef |grep "lighttpd"如果是,请手动杀人
kill -9 Process_ID/etc/init.d/apache2 start或
service apache2 starthttps://askubuntu.com/questions/730576
复制相似问题