In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Download jdk
JDK is a software development kit of Java language, which is mainly used for java applications on mobile devices and embedded devices. JDK is the core of the whole java development, which includes the running environment of JAVA (JVM+Java system class library) and JAVA tools.
First open the official website of JDK (click the open link), find the JDK in JAVA SE 7u71/72, and select Download
Log in to Linux and switch to root user
Su root acquires root user rights, and the current working directory remains unchanged (root password is required)
Or
Sudo-I does not need a root password to switch directly to root (current user password is required)
Third, establish the java installation directory under the usr directory
Cd / usrmkdir java
Copy jdk-8u60-linux-x64.tar.gz to the java directory
Cp / mnt/hgfs/linux/jdk-8u60-linux-x64.tar.gz / usr/java/
Decompress jdk to the current directory
Tar-zxvf jdk-8u60-linux-x64.tar.gz
Get the folder jdk1.8.0_60
Set up a link for him after installation to save the length of the directory
Ln-s / usr/java/jdk1.8.0_60/ / usr/jdk
7. Edit configuration files and configure environment variables
Vim / etc/profile
Add the following: JAVA_HOME according to the actual directory
JAVA_HOME=/usr/java/jdk1.8.0_60CLASSPATH=$JAVA_HOME/lib/PATH=$PATH:$JAVA_HOME/binexport PATH JAVA_HOME CLASSPATH
Restart or execute the command: source / etc/profile
Sudo shutdown-r now
9. Check the installation
Java-versionjava version "1.8.0mm 60" Java (TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot (TM) Client VM (build 25.60-b23, mixed mode)
The above are the details of how to install jdk in linux, please pay attention to other related articles!
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.