linux(centOs7)腾讯云上面的Jdk11的流程和配置
配置环境:
腾讯轻量应用服务器,Jdk为11.0.15
下载地址
wget https://download.oracle.com/otn/java/jdk/11.0.15.1+2/d76aabb62f1c47aa8588b9ae5a8a5b46/jdk-11.0.15.1_linux-x64_bin.rpm?AuthParam=1656551940_3edda0393edf30c51c442d629d1abe00
安装
rpm -ivh jdk-11.0.15.1_linux-x64_bin.rpm
默认安装路径
/usr/java
vim /etc/profile
配置环境变量
export JAVA_HOME=/usr/java/jdk11
export PATH=$JAVA_HOME/bin:$PATH
生效
source /etc/profile
查看是否成功
java -version