mark 配置亚马逊 jdk11

语言: CN / TW / HK

Java11 配置环境变量时不需要配置classpath变量,没有jre目录。

# wget https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.tar.gz
# mkdir /opt/module
# tar -zxvf amazon-corretto-11-x64-linux-jdk.tar.gz -C /opt/module/
# vi /etc/profile
JAVA_HOME=/opt/module/amazon-corretto-11.0.12.7.1-linux-x64

#source /etc/profile
#ln -sf /opt/module/amazon-corretto-11.0.12.7.1-linux-x64/bin/java /usr/bin/

# java -version
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment Corretto-11.0.12.7.1 (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.12.7.1 (build 11.0.12+7-LTS, mixed mode)