categories: [JDK8,Centos 7]
tags: [JDK8,Centos 7] ##
**I use centos7X64 minimal installation **CentOS-7-x86_64-Minimal-1708
yum -y install wget
wget http://download.oracle.com/otn-pub/java/jdk/8u211-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u211-linux-x64.tar.gz?AuthParam=2115389081_199e6be1d23489a50e55e6979e5f31c9
If it fails, check the download address on the official website yourself, or use the official original software I provided below
If the source address is invalid, use the Baidu cloud disk link to download and upload to the server yourself
Link: [jdk-8u211-linux-x64.tar.gz official original] (https://pan.baidu.com/s/1-sFPtFWfw8MuiBnsx86mRg) Extraction code: 2b4f
tar -zxvf jdk-8u211-linux-x64.tar.gz
mkdir -p /usr/local/java
mv jdk1.8.0_211//usr/local/java/jdk1.8.0_211
yum -y install vim
vim /etc/profile
export JAVA_HOME=/usr/local/java/jdk1.8.0_211
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
source /etc/profile
java
javac
Recommended Posts