Mac上启动nginx报错:nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use)

原因:
80端口已被占用(可能因为未成功关闭一些服务,如nginx服务等)

解决:
sudo nginx -s stop(或者:sudo nginx -s quit),然后重新启动(sudo nginx).
当然,如果是因为其他服务占用了80端口,如Apache服务等,则把对应服务器关掉(sudo apachectl stop).

原链接:https://blog.csdn.net/u011439689/article/details/51517760

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2021-12-30
  • 2021-04-27
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2021-10-28
  • 2022-02-09
相关资源
相似解决方案