您的位置:首页 > 运维架构 > Nginx

nigix配置成功,但是不能访问

2016-06-19 16:59 621 查看
一般是因为,防火墙阻止了

service iptables stop后正常启动

如果是centos7 的系统话,它的默认防火墙是firewall而不是iptables

CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。

firewall:

systemctl start firewalld.service#启动firewall

systemctl stop firewalld.service#停止firewall

systemctl disable firewalld.service#禁止firewall开机启动

改成iptables

firewall:

systemctl start iptables.service
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nginx