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

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

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

2、解决:

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

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

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

③访问成功:

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

猜你喜欢

转载自www.cnblogs.com/rgever/p/10332342.html