CentOS7安装好服务,外网不能访问 Posted on 2017-11-28 Edited on 2021-03-24 问题:CentOS安装nginx后,通过外网不能访问怀疑:nginx使用80端口,被防火墙拦截解决办法编辑防火墙配置文件1vim /etc/firewalld/zones/public.xml 增加80端口的开放1<port protocol="tcp" port="80"/> 重启防火墙1systemctl restart firewalld.service