In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how CentOS8 installs jdk8. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Preface
At first, I wanted to download it with wget on CentOS8, then extract it and configure the environment variables, but I didn't do it well for a long time, so I gave up and installed it directly using yum.
1. Installation method
Yum is installed directly on CentOS8, and the environment variables are automatically configured.
2. Check to see if it is installed
The following results indicate that jdk has been installed and configured
[root@localhost] # java-versionopenjdk 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 javarpm-qa | grep jdkrpm-qa | grep gcj
If there is output information, the batch unloading system comes with
Rpm-qa | grep java | xargs rpm-e-nodeps
If you use the jdk installed by yum, uninstall it using the following command
Yum-y remove java-1.8.0-openjdk-headless.x86_64
4. Installation
4.1Check if there is a java1.8 package in yum
Yum list java-1.8*
4.2 start installation
Yum install java-1.8.0-openjdk*-y
5. Verification
[root@localhost] # java-versionopenjdk 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) Thank you for reading! This is the end of this article on "how to install jdk8 in CentOS8". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.