将virtual box设置为桥接网卡,不能使用NAT(网络地址转换) 如果不能访问web服务呢 直接关闭防火墙就行了 /etc/init.d/iptables stop 注意:这里使用的是centos虚拟机