![](/img/trans.png)
[英]systemctl restart httpd Failed to start The Apache HTTP Server httpd pid already running
[英]Apache cant restart because it already uses its port
我嘗試重新啟動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
這里有什么問題?
釋放捕獲內存並
確保您沒有在.conf文件中兩次聲明Listen 80。
例如,您可能同時在ports.conf和inn sites-enabled / www.conf旅館中都擁有它。
要找出答案,請使用:grep -ri listen / etc / apache2
將Listen 80放在一個地方。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.