目录

hymn

忽有故人心头过,回首山河已是秋。

cenos7 安装JDK(open jdk)

#查看jdk版本

yum -y list |grep jkd

#安装jdk8

yum install java-1.8.0-openjdk.x86_64

#jdk安装目录

/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64

#配置JAVA_HOME

vim /etc/profile

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64
export CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar
export PATH=$PATH:$JAVA_HOME/bin


标题:cenos7 安装JDK(open jdk)
作者:hymn
地址:https://dxyhymn.com/articles/2020/06/24/1592990889472.html