Skip to content

Instantly share code, notes, and snippets.

@akkuman
Created December 6, 2023 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akkuman/3d738d567bb6a36b824a5f412d825f3e to your computer and use it in GitHub Desktop.
Save akkuman/3d738d567bb6a36b824a5f412d825f3e to your computer and use it in GitHub Desktop.
debian安装openjdk8(国内镜像)
# 安装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