The configuration is very simple, but I have to check it every time, so I just record it. 1. Preparation before installation 1.1 Create an installation directory. It is usually installed in the /usr/local/jdk8 directory. 1.2 Check whether JDK has been installed. Delete the previous one before installation. # Check echo $JAVA_HOME through jdk environment variables # Check the version by java -version 1.3 Download the installation package wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz 2. Installation 2.1 Unzip and rename tar -zxvf jdk-8u131-linux-x64.tar.gz mv jdk1.8.0_131 jdk1.8 2.2 Configure JDK-related environment variables. The ones circled in red in the middle need to be added. Use the source command to make the configuration file take effect. vi ~/.bashrc export JAVA_HOME=/usr/java/latest export PATH=$PATH:$JAVA_HOME/bin source ~/.bashrc 2.3 Check whether the configuration is successful. If the jdk version number appears in java -version, the installation and configuration of the environment variables are successful. You may also be interested in:
|
<<: Detailed explanation of Angular structural directive modules and styles
>>: The latest mysql-5.7.21 installation and configuration method
Preface The essence of deadlock is resource compe...
Table of contents How to start mysqld Method 1: m...
This article introduces a detailed explanation of...
1. Introduction Docker has an orchestration tool ...
Preface During project development, due to differ...
1. First register your own dockerhub account, reg...
Linux version: CentOS 7 [root@azfdbdfsdf230lqdg1b...
Table of contents 1. Choose the most appropriate ...
Specific method: 1. Open Command Prompt 2. Enter ...
Table of contents 1. From father to son 2. Son to...
Table of contents introduce Usage scenarios Sourc...
There is a table student in the mysql database, i...
Password Mode PDO::__construct(): The server requ...
To do MySQL performance adjustment and service st...
Today's article mainly introduces the reload ...