First, use the command yum search support jdk version
yum search java|grep jdk
Second, use yum install jdk8
yum install -y java-1.8.0-openjdk
Third, the check is successful
java -version
First, use the command yum search support jdk version
yum search java|grep jdk
Second, use yum install jdk8
yum install -y java-1.8.0-openjdk
Third, the check is successful
java -version