1.首先排查配置文件是否正确

    nginx -t

2.在阿里云控制台,安全组内添加nginx的端口规则

nginx+阿里云服务器公网ip不能访问

3.检查防火墙
    systemctl status firewalld.service

4.查看nginx运行状态

    systemctl status nginx

注意:网上排查方法很多,我遇到坑的一点,全部按照做完之后,服务都重启了,还是不能访问,重启了下服务器好了

相关文章:

  • 2021-05-29
  • 2021-08-18
  • 2021-11-08
  • 2021-11-23
猜你喜欢
  • 2021-03-31
  • 2021-11-28
  • 2022-01-21
  • 2021-10-04
  • 2021-05-24
  • 2021-12-04
  • 2021-04-02
相关资源
相似解决方案