码迷,mamicode.com
首页 > 其他好文 > 详细

解决nginx bind() to 0.0.0.0:80 failed 问题

时间:2016-06-27 15:10:25      阅读:352      评论:0      收藏:0      [点我收藏+]

标签:

nginx的配置文件一开始默认是80端口,出现这个错误多半是80端口已经被占用。这时候只需要把

 

server {
listen 8088;
server_name localhost lcsf.com;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
proxy_pass http://lcsf.com;
proxy_redirect default;
}

这个地方的listen改成一个没有被占用过的端口然后重启nginx就可以解决

 

2016/06/27 13:38:35 [emerg] 6040#7180: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)

 

这样的错误了

解决nginx bind() to 0.0.0.0:80 failed 问题

标签:

原文地址:http://www.cnblogs.com/llcdbk/p/5619979.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!