Created
December 6, 2023 07:53
-
-
Save akkuman/3d738d567bb6a36b824a5f412d825f3e to your computer and use it in GitHub Desktop.
debian安装openjdk8(国内镜像)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 安装jdk | |
# https://adoptium.net/zh-CN/installation/linux/#_deb_installation_on_debian_or_ubuntu | |
# https://mirrors.tuna.tsinghua.edu.cn/help/adoptium/ | |
apt-get install -y wget apt-transport-https && \ | |
mkdir -p /etc/apt/keyrings && \ | |
(wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc) && \ | |
(echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://mirrors.tuna.tsinghua.edu.cn/Adoptium/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list) && \ | |
apt-get update && apt-get install -y temurin-8-jdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment