标签:path install lib x86 yum jvm nbsp 设置 jdk
1.安装jdk8
yum install java-1.8.0-openjdk
2.检查jdk是否成功
java -version
3.设置java path
vim .bash_profile
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64/jre/bin/java
source .bash_profile
echo $JAVA_HOME
标签:path install lib x86 yum jvm nbsp 设置 jdk
原文地址:https://www.cnblogs.com/LittleLee/p/14610071.html