Apache 更改端口出错解决方法 (13)Permission denied: make_sock: could not bind to address

(13)Permission denied: make_sock: could not bind to address

需要先执行semanage,如果程序不存在,那么需要先安装

yum install policycoreutils-python

 

然后开始先检查端口是否存在

 semanage port -l|grep http

 

比如要添加另外一个端口,8168

semanage port -a -t http_port_t -p tcp 8168      (执行期有点慢,等一下吧)

 

 

好了,搞定

 

posted @ 2017-05-24 15:11  ray30th  阅读(771)  评论(0编辑  收藏  举报