Centos7 installation jdk8 correct posture practice notes


title: Centos7 installation jdk8 correct posture practice notes

categories: [JDK8,Centos 7]
tags: [JDK8,Centos 7] ##

**I use centos7X64 minimal installation **CentOS-7-x86_64-Minimal-1708

Personal blog on github: Personal blog powered by hexo

1. Install wget

yum -y install wget

2. Download jdk8

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

3. Unzip##

tar -zxvf jdk-8u211-linux-x64.tar.gz

4. Move to /usr/local/java/jdk1.8.0_211

mkdir -p /usr/local/java
mv jdk1.8.0_211//usr/local/java/jdk1.8.0_211

5. Set environment variables##

yum -y install vim
vim /etc/profile

File added at the end:

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

6. The configuration file takes effect immediately##

source /etc/profile

7. Check if the installation is successful##

java
javac

Recommended Posts

Centos7 installation jdk8 correct posture practice notes
Linux notes (1): CentOS-7 installation
Centos7 to install the correct posture of Tomcat8 and set the boot self-start practice notes
Centos7 install the correct posture of the Tomcat8 pseudo cluster and set the boot self-start practice notes
2019-07-09 CentOS7 installation
centos7_1708 installation
Centos5 installation guide
Installation and configuration of JDK in CentOS 7 system
Docker installation (CentOS7 installation)
CentOS7 docker installation
Centos7 configure JDK
Detailed tutorial on installing JDK8 on Linux system (CentOS7 installation)
CentOS online installation RabbitMQ3.7
Zabbix 2.2.20 installation details (Centos6.9)
Centos source installation Python3
Linux Centos7 install jdk1.8
Centos7 mqtt cluster installation
Graphical installation of CentOS8
Mysql8.0.15 installation configuration (centos7)
Redis3 installation under Centos7
CentOS online installation RabbitMQ3.7
Docker CentOS installation method
Linux CentOS 7 installation tutorial
Centos 7 install JDK (Linux install jdk)
Centos7 docker installation details