1.把虚拟机中的防火墙给清了一下。[root@localhost ~]# sudo iptables -F2.关闭防火墙service iptables stop3.你配置文件中的IP和你虚拟机的IP不符合