问题:CentOS安装好nginx后,通过外网不能访问的到
怀疑:防火墙没有通过80端口
解决方法:
编辑vim /etc/firewalld/zones/public.xml
增加<port protocol="tcp" port="80"/>
重启防火墙:systemctl restart firewalld.service
编辑vim /etc/firewalld/zones/public.xml
增加<port protocol="tcp" port="80"/>
重启防火墙:systemctl restart firewalld.service