centos 安装JAVA JDK11.0.1

1、设置目录

# cd /usr/local/
# mkdir jdk/
# cd jdk/

2、下载JDK11.0.1

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"  https://download.oracle.com/otn-pub/java/jdk/11.0.1+13/90cf5d8f270a4347a95050320eef3fb7/jdk-11.0.1_linux-x64_bin.rpm

3、执行安装

# rpm -ivh jdk-11.0.1_linux-x64_bin.rpm

4、检验是否安装成功

# java -version

 

你可能感兴趣的:(JAVA,centos)