2016-08-24 19 views
1

煥我試圖重新啓動Apache它顯示了一個錯誤:阿帕奇不能重新啓動,因爲它已經利用其端口

(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 
no listening sockets available, shutting down 

但是,當我試圖檢查誰使用它,它指向自身:

tcp  0  0 0.0.0.0:8080   0.0.0.0:*    LISTEN  22656/apache2 
tcp  0  0 0.0.0.0:80    0.0.0.0:*    LISTEN  22656/apache2 

這裏有什麼問題?

回答

2

免費漁獲內存和

確保你是不是在聲明conf文件聽80的兩倍。

例如,您可能在ports.conf和inn sites-enabled/www.conf中都有。

爲了找到答案,用:grep的-ri聽的/ etc/apache2的

請只是一個地方聽80。