已解决:[emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forb

表示nginx 监听80端口失败,很有可能是80端口被占用 

这里给出一个比较便捷地解决方法,我们在nginx目录下的conf文件夹中打开nginx.conf,修改监听的端口,我在这里改为了8085端口,保存后使用nginx -t检查就没有错误了

已解决:[emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forb_第1张图片

 

最后去浏览器输入地址localhost:8085确认一下 

已解决:[emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forb_第2张图片 

 

你可能感兴趣的:(已解决:[emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forb)