1. Cleaning before installation rpm -qa | grep jdk rpm -qa | grep gcj yum -y remove java-xxx-xxx 2. Download JDK online Order:
Download Reading Strip: Check whether there is a JDK installation package in the current folder: Add execute permissions: Command: Execute rpm to install Command: Check whether JDK is installed successfully Command: Check the installation path of JDK (the default path is /usr/java/jdk1.8.0_131) Configuring JDK environment variables 1. Edit environment variables export JAVA_HOME=/usr/java/jdk1.8.0_131 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin export PATH=$PATH:${JAVA_PATH} 2. Edit /etc/profile Command: 3. Configure the environment Command: i enters edit mode Paste the edited Enter the command: :wq! Force save and exit Let the profile take effect immediately: Summarize The above is a detailed tutorial on how to install JDK1.8 under Linux system introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Solution to MySql service disappearance for unknown reasons
>>: javascript countdown prompt box
Problem description: I bought a Mac and installed...
1. Indexes do not store null values More precisel...
Project scenario: Dark Horse Vue project manageme...
This time we set up an rtmp live broadcast server...
Table of contents 1. Introduction 2. Code Impleme...
Table of contents MySQL Client/Server Protocol If...
Template 1: login.vue <template> <p clas...
Table of contents 1. Vue installation Method 1: C...
Preface When we build a MySQL cluster, we natural...
Use nginx to configure the separation of PC site ...
Version Chain In InnoDB engine tables, there are ...
1. The difference between Http and Https HTTP: It...
Introduction There is no need to introduce Redis ...
I found a lot of websites that use drop-down or sl...
1. The Importance of Indexes Indexes are used to ...