centos6.5安装nginx成功,但是其他主机无法访问解决方案

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
发布了56 篇原创文章 · 获赞 42 · 访问量 43万+

猜你喜欢

转载自blog.csdn.net/SIMPLE1995/article/details/92832019