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
Nginx cross-domain configuration does not take ef...
Understanding of diff algorithm in React diff alg...
1. Achieve the effect 2 Knowledge Points 2.1 <...
background If the catalina.out log file generated...
When you need to create an email in a shell scrip...
Table of contents Preface Optional Chaining Nulli...
Table of contents need: Ideas: lesson: Share the ...
1. Overview This article systematically explains ...
1. The ul tag has a padding value by default in M...
Table of contents Preface 1. Basic Data 2. Inheri...
Table of contents 8. CSS3 click button circular p...
Preface Intel's hyper-threading technology al...
border-radius:10px; /* All corners are rounded wi...
<br /> The website access speed can directly...
Table of contents JavaScript private class fields...