1. 云栖社区>
  2. PHP教程>
  3. 正文

)Permission denied: make_sock: could not bind to address [::]:80

作者:用户 来源:互联网 时间:2017-12-01 12:19:58

makebinddeniedpermissionsockaddress80could

)Permission denied: make_sock: could not bind to address [::]:80 - 摘要: 本文讲的是)Permission denied: make_sock: could not bind to address [::]:80, Permission denied: make_sock: could not bind to address [::]:8086在服务器中部署php,启动时遇到了这个问题:[[email protected] html]# servic


Permission denied: make_sock: could not bind to address [::]:8086
在服务器中部署php,启动时遇到了这个问题:
[[email protected] html]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.termwikidev for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:8086
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8086
no listening sockets available, shutting down
Unable to open logs
解决办法:
semanage port -l|grep http
semanage port -a -t http_port_t -p tcp 81
这个两个命令一是查看,一个是添加,添加完再查看一遍,如果有81,则成功。另可能要以root用户运行。
此外,如果要外网访问,还要打开linux的防火墙:
[[email protected] html]# vim /etc/sysconfig/iptables
[[email protected] html]# service iptables restart
重启apache.

以上是云栖社区小编为您精心准备的的内容,在云栖社区的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索make , bind , denied , permission , sock , address , 80 could ,以便于您获取更多的相关知识。