Preface At first, I wanted to use wget to download it on CentOS8, then decompress it and configure the environment variables. However, I failed to do it after a long time, so I gave up and installed it directly using yum. 1. Installation method Use yum to install directly on CentOS8, and the environment variables are automatically configured 2. Check whether it has been installed Seeing the following results, it means that jdk has been installed and configured [root@localhost ~]# java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) 3. Uninstall Check whether the system comes with JDK rpm -qa |grep java rpm -qa |grep jdk rpm -qa |grep gcj If there is output information, batch uninstall system comes with If you installed JDK using yum, use the following command to uninstall 4. Installation 4.1 Check if there is java1.8 package in yum 4.2 Start the installation 5. Verification [root@localhost ~]# java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) Summarize The above is the tutorial on how to install jdk8 / java8 on CentOS8 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:
|
<<: Summary of using MySQL online DDL gh-ost
>>: React High-Order Component HOC Usage Summary
Table of contents 1. Node builds HTTP server 2. H...
Table of contents 1. Effect 2. Main code 1. Effec...
How to use iframe: Copy code The code is as follo...
When OP opens a web page with the current firmwar...
Table of contents accomplish: Summarize: Not much...
Detailed explanation of mysql count The count fun...
Basic syntax of the table <table>...</tab...
Core code <!DOCTYPE html> <html lang=&qu...
Table of contents 3 ways to deploy projects with ...
This article describes the MySQL user management ...
union execution For ease of analysis, use the fol...
The Linux operating system has revolutionized the...
1. CSS3 triangle continues to zoom in special eff...
I installed a virtual machine a long time ago, an...
Overview In the previous chapter, we learned abou...