1. View openjdk rpm -qa|grep jdk 2. Delete openjdk (rpm -e --nodeps) rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.262.b10-1.el7.x86_64 3. Check whether openjdk has been deleted (same as checking jdk) rpm -qa|grep jdk 4. Create a java directory under usr, import the installation package into the directory and decompress the files 5. Enter the vim /etc/profile directory and edit the configuration file export JAVA_HOME=/usr/java/jdk1.8.0_181 6. Make the file effective source /etc/profile 7. Check whether jdk is installed java -version 8. Copy the configuration file to other virtual machines (scp -r /etc/profile root@z3:/etc/profile scp -r /etc/profile root@z3:/etc/profile 9. Copy the installation package to another virtual machine (scp -r /usr/java root@z3:/usr/java scp -r /usr/java root@z3:/usr/java 10. Use vim /etc/profile on other virtual machines to make the file effective vim /etc/profile This is the end of this article about installing jdk under Linux, including uninstalling OpenJDK. For more information about installing jdk under Linux and uninstalling OpenJDK, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: A brief analysis of the underlying principles of MySQL transactions and isolation levels
>>: CSS implements five common 2D transformations
Table of contents MySQL Client/Server Protocol If...
Introducing vue and vue-router <script src=&qu...
Before further analyzing why MySQL database index...
Before starting the main text, I will introduce s...
There are too much knowledge to learn recently, a...
Purpose: Treat Station A as the secondary directo...
Today, let’s discuss an interesting topic: How mu...
mysql query with multiple conditions Environment:...
Table of contents 1. Install JDK 2. Install Jenki...
1. Install the dependency packages first to avoid...
I downloaded and installed the latest version of ...
In the previous article, I introduced how to solv...
1. Create table statement: CREATE TABLE `employee...
nohup command: If you are running a process and y...
In the previous article, after using openssl to g...