查看JDK软件包列表yum search java | grep -i --color jdk选择版本安装yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel#或者如下命令,安装jdk1.8.0的所有文件yum install -y java-1.8.0-openjdk*查看JDK是否安装成功java -version