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/02 Report--
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
Link: https://pan.baidu.com/s/1qu71DDVXvU3kBEg-cgBpKw
Extraction code: hn1u
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
Summary
The above is the detailed explanation of the Linux system (CentOS7 installation) installation JDK8 tutorial introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
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.