通过yum安装jdk,首先查询jdk是否存在
yum search java|grep 1.8.0-openjdk
安装 yum -y install java-1.8.0-openjdk-devel.x86_64
输入 java --verison
报错:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
别慌,配置环境变量