一、首先准备java环境,安装JDK
Add the RPM repo to /etc/yum.repos.d/adoptium.repo
making sure to change the distribution name if you are not using CentOS/RHEL/Fedora. To check the full list of versions supported take a look at the list in the tree at JFrog.
点击此:Linux (RPM/DEB/APK) installer packages | Adoptium
# Uncomment and change the distribution name if you are not using CentOS/RHEL/Fedora
# DISTRIBUTION_NAME=centos
cat <<EOF > /etc/yum.repos.d/adoptium.repo
[Adoptium]
name=Adoptium
baseurl=https://packages.adoptium.net/artifactory/rpm/${DIST