1. 程式人生 > >關於Centos 出現httpd:(13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission

關於Centos 出現httpd:(13)Permission denied: make_sock: could not bind to address [::]:80 (13)Permission

關於解決(13)Permission denied: make_sock: could not bind to address [::]:80

今天再學習Apache伺服器發現總是出現這個問題:

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

經過百度觀看大神們的解決方案,嘗試了多次後,最後發現是:

SELinux引發的問題,然後運用臨時禁止即可啟動成功。現記錄至此以備以後運用。

#getenforce

Enforcing

SElinux未禁用。

1、臨時禁用SELinux:
# setenforce 0

這樣重啟伺服器之後,還是會啟動SELinux;

備註:setenforce 1 臨時啟用SELinux

2、臨時禁止後還是會啟動,有需要的可以永久禁止。