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 1. Make good use of components ...
I just installed Ubuntu and there was no network ...
This article shares the specific code for WeChat ...
After nginx is compiled and installed and used fo...
1. Write a split script (splitNginxLog.sh) * Beca...
Table of contents 1. What is a component? 2. Crea...
1. Download the MySQL 5.7 installation package fr...
Basically all e-commerce projects have the functi...
The format is simple: proxy_pass URL; The URL inc...
Table of contents Error demonstration By computed...
Preface Now the operating system used by my compa...
CSS Styles html,body{ width: 100%; height: 100%; ...
Table of contents 1. MHA 1. Concept 2. Compositio...
Today I happened to be helping a friend move his ...
When rendering Markdown before, I used the previe...