Centos7 安装 jdk20
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