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

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

这里给出一个比较便捷地解决方法,我们在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

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

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

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

 

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2021-07-22
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2021-07-01
  • 2021-09-17
  • 2021-07-11
  • 2021-12-03
  • 2022-12-23
相关资源
相似解决方案