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
MySQL green version setting code, and 1067 error ...
What I have been learning recently involves knowl...
You can view the container logs through the docke...
HTML5 and jQuery implement the preview of local i...
A simple MySQL full backup script that backs up t...
View Docker Network docker network ls [root@maste...
Sometimes the code is lost and you need to recove...
Table of contents 1. Overview 2. Name field 3. Ve...
The garbled code problem is as follows: The reaso...
Today I happened to be helping a friend move his ...
Preface I have installed MySQL 5.6 before. Three ...
This article example shares the specific code of ...
1. Spread Operator The spread operator is three d...
The following situations were discovered during d...
Table of contents 1. What is JSON 1.1 Array liter...