一、使用yum命令搜索支持jdk版本
yum search java|grep jdk
二、使用yum安装jdk8
yum install -y java-1.8.0-openjdk
三、检查是否成功
java -version