1,安装jdk,运行java检查是否安装正确,出现Error occurred during initialization of VMjava,connect: network is unreachable?
解决办法:检查防火墙的状态,并关闭。
centos7.0 防火墙 有关命令:
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动(永久关闭) systemctl disable firewall.service 获取firewall的状态 firewall-cmd --state