主要原因是redhat开启了防火墙
关闭宿主机和虚拟机中的防火墙,linux虚拟机中的防火墙关闭为 :service iptables stop 只是临时关闭防火墙
:chkconfig iptables off 永久关闭,on为开启
可以查看虚拟机中的防火墙状态来查看是否关闭: service iptables status
主要原因是redhat开启了防火墙
关闭宿主机和虚拟机中的防火墙,linux虚拟机中的防火墙关闭为 :service iptables stop 只是临时关闭防火墙
:chkconfig iptables off 永久关闭,on为开启
可以查看虚拟机中的防火墙状态来查看是否关闭: service iptables status