解決啓動Apache遇到的問題Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:8888

1、可能原因:SELinux限制了Apache的端口設置
2、解決辦法:

 

//安裝semanage
yum provides /usr/sbin/semanage
yum -y install policycoreutils-python
//查看默認允許的端口
semanage port -l | grep -w http_port_t
// http_port_t  tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000
//使用semanage添加apache偵聽的端口
semanage port -a -t http_port_t -p tcp 8888
//啓動apache
systemctl start httpd


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章