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
MySQL is a very powerful relational database. How...
Configure Mysql master-slave service implementati...
Preface Arrays are a special kind of object. Ther...
Remount the data disk after initializing the syst...
You may sometimes need to create or delete symbol...
The concept of lock ①. Lock, in real life, is a t...
The players we see on the web pages are nothing m...
1. Upload rz to the server and decompress it rz [...
This article example shares the application code ...
The general way of writing is as follows: XML/HTM...
Table of contents 1. Animated Christmas Tree Made...
Table of contents Scenario Requirements glibc ver...
Demand background The project is made using Vue, ...
Table of contents 1. Effect Demonstration 2. Impl...
This article records the installation tutorial of...