1、查询可安装jdk列表:
先查看是否安装
yum list installed | grep java
yum list java*
2、安装jdk1.8;
yum -y install java-1.8.0-openjdk*x86_64
3、查看是否安装成功;
java -version
javac -version
1、查询可安装jdk列表:
yum list installed | grep java
yum list java*
2、安装jdk1.8;
yum -y install java-1.8.0-openjdk*x86_64
3、查看是否安装成功;
java -version
javac -version