centos7下nginx无法访问

来源:互联网 发布:1hhhh域名升级访问中 编辑:程序博客网 时间:2024/06/02 02:52
centos7默认使用firewalld作为防火墙。
  • centos7用的firewalld,我说iptables怎么没开。。
  • firewalld默认已经安装并启用了,如果需要nginx可以访问需要执行以下命令:
firewall-cmd --permanent --add-service=http

firewall-cmd --permanent --zone=trusted --add-port=80/tcp


或者关闭防火墙服务:

systemctl stop firewalld

原创粉丝点击