昨天搞好了多久来的心病,linux虚拟机不能联网。既然能联通了,肯定立马着手nginx 的配置了噻!
在此,也要记录一下:
[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