Nginx启动成功,但浏览器不能访问
发布时间:2020-08-26作者:小灵龙点击:119
执行
[root@localhost nginx-1.12.2]# netstat -ntlp
第一步,对80端口进行防火墙配置:
[root@localhost nginx-1.12.2]# firewall-cmd --zone=public --add-port=80/tcp --permanent
第二步,重启防火墙服务:
[root@localhost nginx-1.12.2]# systemctl restart firewalld.service