系统相关
首页 > 系统相关> > Linux升级java15

Linux升级java15

作者:互联网

1、下载
https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz
2、安装
[root@test ~]# tar -zxvf openjdk-15.0.2_linux-x64_bin.tar.gz -C /usr/local/
[root@test ~]# vim /etc/profile
export JAVA_HOME=/usr/local/jdk-15.0.2
export JRE_HOME=/usr/local/jdk-15.0.2
export PATH= J A V A H O M E / b i n : JAVA_HOME/bin: JAVAH​OME/bin:PATH
[root@test ~]# source /etc/profile
3、查看版本
[root@test ~]# java -version
openjdk version “15.0.2” 2021-01-19
OpenJDK Runtime Environment (build 15.0.2+7-27)
OpenJDK 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

标签:java15,15.0,tar,bin,升级,export,Linux,test,root
来源: https://blog.csdn.net/gjjhyd/article/details/120522850