1、首要想到的问题是防火墙没关

注意:因为centos7.0默认不是使用iptables方式管理,而是firewalld方式。CentOS6.0防火墙用iptables管理。

2、解决:

①首先查看防火墙状态:systemctl status firewalld 

nginx部署成功却没有办法访问

看到了active(running),防火墙开着没错了

②关掉防火墙:systemctl stop firewalld.service

nginx部署成功却没有办法访问

③访问成功:

nginx部署成功却没有办法访问

参考链接:https://blog.csdn.net/ls1645/article/details/78750561

 

相关文章:

  • 2022-12-23
  • 2021-07-16
  • 2021-05-12
  • 2021-06-04
  • 2022-12-23
  • 2021-07-20
  • 2021-11-10
  • 2021-10-21
猜你喜欢
  • 2022-02-07
  • 2022-01-07
  • 2021-11-22
  • 2021-04-06
  • 2022-01-22
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案