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 Docker Installation Nvidia-dock...
win10 + Ubuntu 20.04 LTS dual system installation...
Table of contents 1. Parent component passes data...
After the changes: innodb_buffer_pool_size=576M -...
Question: After the computer restarts, the mysql ...
Copy code The code is as follows: <form action...
When writing animations with JS, layout conversio...
Table of contents What to do when registering an ...
This article example shares the specific code of ...
This article example shares the specific code of ...
For .net development, I am more familiar with Mic...
I recently upgraded MySQL to 5.7, and WordPress r...
Table of contents 1. Middleman Model 2. Examples ...
1. Use the speed control function to control the ...
When displaying long data in HTML, you can cut off...