1、下载
wget https://download.oracle.com/java/20/latest/jdk-20_linux-x64_bin.tar.gz
2、解压
tar zxvf jdk-20_linux-x64_bin.tar.gz -C /usr/local/
3、配置环境遍历
vim /etc/profile
JAVA_HOME=/usr/local/jdk-20/ export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
标签:bin,jdk20,20,jdk,tar,gz,Centos7,安装 From: https://www.cnblogs.com/lfxx/p/17323850.html