centos7 安装JDK8

2020-07-21  本文已影响0人  Jinx菜鸟之路

centos7安装JDK8

1.上传jdk8到/usr/local/java,并解压

2.ln -s /usr/local/java/jdk1.8.0_11 /usr/local/java/jdk

3.vi /etc/profile

最后添加

export JAVA_HOME=/usr/local/java/jdk

export JRE_HOME=${JAVA_HOME}/jre

export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib

export PATH=${JAVA_HOME}/bin:$PATH

4.source /etc/profile

上一篇下一篇

猜你喜欢

热点阅读