In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "CentOS7 how to install JDK8", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "CentOS7 how to install JDK8" bar!
Installation of jdk
The system installation does not introduce too much, we look for the installation steps from the Internet, but I recommend that you choose the desktop graphical format for installation to facilitate part of the operation, and choose the English mode during the installation process. At the same time, I found that it is more convenient to use oracle vm virtualbox as a virtual machine tool than to use vm tools during the installation process.
Use the tool
System: centos7_64 bit (minimum configuration command window is recommended)
Jdk:jdk1.8.0_191
Virtual machine: oracle vm virtualbox
Documentation tool: editplus
File transfer tool: filezilla
Tool for connecting linux systems: xshell5 (recommended, but used with caution, fee-based software)
Sunflower remote connection operation tool
File path
1. Upload jdk file (/ develop/package)
two。 Uninstall jdk (jdk version will be included on centos)
1) query all java (use the minimum configuration command line to query the java and install it directly)
Rpm-qa | grep java
2) delete java other than three
Rpm-e-nodeps java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64rpm-e-nodeps java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64rpm-e-- nodeps java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64rpm-e-- nodeps java-1.7.0-openjdk-headless- 1.7.0.111-2.6.7.8.el7.x86_64
3) use the command to query after deletion
Rpm-qa | grep java
3. Decompress jdk
Tar-zxvf jdk-8u191-linux-x64.tar.gz-c.. /
4. Configure environment variables (using editplus)
Open / etc/profile and add the following code # java environmentexport java_home=/develop/jdk1.8.0_191export classpath=.:$java_home/jre/lib/rt.jar:$java_home/lib/dt.jar:$java_home/lib/tools.jarexport path=$path:$java_home/bin at the end
5. Make the modified configuration take effect.
Source / etc/profile
6. Check whether the configuration is successful
Java-version
Javac
Thank you for reading, the above is the content of "how to install JDK8 in CentOS7". After the study of this article, I believe you have a deeper understanding of how to install JDK8 in CentOS7, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.