虚拟机里nginx可以访问,但外部不能访问,解决方法:
vim/etc/sysconfig/iptables 添加 -ARH-Firewall-1-INPUT-mstate–stateNEW-mtcp-ptcp–dport80-jACCEPT
然后执行(即时生效,重启失效): service iptables stop service iptables start
重启后生效 chkconfig iptabels on chkconfig iptabels off
猜你喜欢
QQ:800-70898
156-3892-6688