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
Vuex is a state management pattern developed spec...
Table of contents Preface Summary of the principl...
This article shares the specific code of Vue to i...
HTML forms are commonly used to collect user info...
First, let me introduce the meaning of some field...
To search for RocketMQ images, you can search on ...
MySQL supports many data types, and choosing the ...
1. Docker pull pulls the image When using $ docke...
1. Download related tools and images Download Lin...
I have installed various images under virtual mac...
This article mainly introduces an example of Vue ...
Introduction: This article mainly introduces how ...
1. Concept Analysis 1: UE User Experience <br ...
Follow the official tutorial, download the instal...
Table of contents 1 Install Docker 2 Configuring ...