昨天搞好了多久来的心病,linux虚拟机不能联网。既然能联通了,肯定立马着手nginx 的配置了噻!
遵照http://blog.csdn.net/haitun312366/article/details/8511475这篇博客的指示,执行命令,果然就OK了!感谢@haitun312366
在此,也要记录一下:
[cpp] view plain copy
- [root@localhost html]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
- [root@localhost html]# /etc/init.d/iptables save
- [root@localhost html]# /etc/init.d/iptables restart