linux apache報Permission denied: make_sock: could not bind to address

在apache中綁定非http標準端口時,出現錯誤提示:
Starting httpd: Permission denied: make_sock: could not bind to address 0.0.0.0:89
no listening sockets available, shutting down
Unable to open logs
解決方法:
增加selinux中http的端口
semanage port -l|grep http #查看SELinux下http相關端口

semanage port -a -t http_port_t -p tcp 89 #增加89這個非標準端口即可

重啓apache [root@localhost ~]# /etc/init.d/httpd restart 或者 service httpd start
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章