httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88
生活随笔
收集整理的這篇文章主要介紹了
httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
PHP 配置文件設(shè)置監(jiān)聽端口出現(xiàn)報(bào)錯(cuò):
httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88
配置文件:/etc/httpd/conf/httpd.conf
由于缺少SELinux權(quán)限,默認(rèn)情況下,SELinux僅允許apache / httpd綁定到以下端口:
80, 81, 443, 488, 8008, 8009, 8443, 9000
因此,結(jié)合我httpd.conf 監(jiān)聽 88 端口將失敗。
要解決問題,我必須在系統(tǒng)的SELinux配置中添加端口88:
- 安裝semanage工具:sudo yum -y install policycoreutils-python
- 允許端口88使用httpd: sudo semanage port -a -t http_port_t -p tcp 88
總結(jié)
以上是生活随笔為你收集整理的httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ajax 进度条 php,php – J
- 下一篇: ueditor 上传视频丢失src的解决