CENTOS7 Mini Configuration Linux Server (quad) configure JDK

Source: Internet
Author: User

Here simply write the whole process of Centos7mini installation jdk1.8.

First, download the Jdk,linux version.

Address: http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Second, check whether Linux has been installed, and uninstall.

--qa | grep java
-e–nodeps tzdata-java-2012c-1-e–nodeps java-1.6. 0-openjdk-1.6. 0.0-1.45. 1.11. 1. el6.x86_64

Iii. unpacking and installing the JDK

1. Xshell The JDK's tar.gz compression package to the Linux/usr directory using the.  2. Go to the/usr directory and unzip the package.    /usr   -zxvf jdk-8u111-linux-x64.tar.gz3. Change the extracted folder name and delete the compressed package   MV Jdk1. 8. 0_111/jdk1. 8   

IV. Configuring environment variables and testing

After installation, you need to configure the environment variables,edit/etc//etc/profileat the end of the file to add the following configuration: Export java_home=/usr/jdk1.8Export CLASSPATH=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar export PATH=$ PATH: $JAVA _home/bin

After editing, remember to enter: Wq save exit, the last step is to reload the/etc/profile file via the source command, so that the modified content is valid in the current shell window:

Source/etc/profile

Test: Java-version, can see version description configured successfully

CENTOS7 Mini Configuration Linux Server (quad) configure JDK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.