1、下载安装包
[root@jenkins app]# uname -a Linux jenkins 4.18.0-80.7.2.el7.aarch64 #1 SMP Thu Sep 12 16:13:20 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
这里是aarch64架构,所以下载jdk需要下载对应的,Java Downloads | Oracle
2、解压
tar -zxvf jdk-17_linux-aarch64_bin.tar.gz -C /app/
3、配置环境变量
vim /etc/profile
# shift + G到最后一行,o进行输入
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
4、验证
显示以下内容表示成功
[root@jenkins app]# java -version
java version "17.0.12" 2024-07-16 LTS
Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.12+8-LTS-286, mixed mode, sharing)
标签:LTS,12,Java,运维,aarch64,app,JDK17,17.0
From: https://blog.csdn.net/m0_49710410/article/details/142206116