在 ubuntu 14.04中,apache2 AH00015: 无法打开日志操作'start'失败

分享于 

1分钟阅读

ubuntu

  繁體

问题

重新启动web服务器后,apache会给出错误:


 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.


[fail]


 * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems




答案1

运行


sudo netstat -tulpn | grep :80



你会得到这样的输出


tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1066/lighttpd



注意监听端口的进程的pid,在例子中是1066.然后运行


sudo kill -9 1066





log  act  Ubuntu  Apache  Action  logs  
相关文章