In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to install JDK1.8 in the Linux system, the content is very detailed, interested friends can refer to, hope to be helpful to you.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
First, the cleaning work before installation
Rpm-qa | grep jdkrpm-qa | grep gcjyum-y remove java-xxx-xxx
Second, download JDK online
Command:
Wget-no-check-certificate-no-cookies-header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
Download the read bar:
Check to see if there is a JDK installation package under the current folder:
Add execution permissions:
Command: chmod + x jdk-8u131-linux-x64.rpm
Execute rpm for installation
Command: rpm-ivh jdk-8u131-linux-x64.rpm
Check to see if JDK is installed successfully
Command: java-version
Check the installation path of JDK (general default path: / usr/java/jdk1.8.0_131)
Configure JDK environment variables
1. Edit environment variables
Export JAVA_HOME=/usr/java/jdk1.8.0_131 export JRE_HOME=$ {JAVA_HOME} / jre export CLASSPATH=.:$ {JAVA_HOME} / lib:$ {JRE_HOME} / lib:$CLASSPATH export JAVA_PATH=$ {JAVA_HOME} / bin:$ {JRE_HOME} / bin export PATH=$PATH:$ {JAVA_PATH}
2. Edit / etc/profile
Command: vim / etc/profile
3. Configure the environment
Command: I enter edit mode
Paste the edited ones above.
Enter the command:: wq!
Force save and exit
Make profile effective immediately:
Source / etc/profile
On how to install JDK1.8 in the Linux system to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it 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.