centos6.5安装nginx成功,但是其他主机无法访问,经排查,原因为80端口防火墙问题。
需要打开服务器防火墙80端口
执行以下Linux命令:
[root@localhost ]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
[root@localhost ]# /etc/init.d/iptables save
[root@localhost ]# /etc/init.d/iptables restart
centos6.5安装nginx成功,但是其他主机无法访问,经排查,原因为80端口防火墙问题。
需要打开服务器防火墙80端口
执行以下Linux命令:
[root@localhost ]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
[root@localhost ]# /etc/init.d/iptables save
[root@localhost ]# /etc/init.d/iptables restart