Preface: Recently writing continuous integration, ready to write the relevant articles in a sub-article
Directory
I. Installation environment, installation version
1.1 System Environment
1.2 Software version
Two. Installation steps
2.1
2.2 Installation
2.3 Modifying a configuration file
Three. Verification
I. Installation Environment
1.1 Installation Environment
[Email protected] test]# lsb_release-alsb Version:: Base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch: Graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchdistributor id:centosdescription: CentOS Release 6.6 (Final) release:6.6codename:final[[email protected] test]# uname-alinux gtproxy-pa-1 2.6 .32-504.el6.x86_64 #1 SMP Wed Oct 04:27:16 UTC x86_64 x86_64 x86_64 gnu/linux
1.2 Software version
Java version: jdk1.6.0_45 64-bit Linux Edition
Two installation steps
2.1 Software Downloads
Jdk-6u45-linux-x64.bin
Download the JDK website
Baidu Network address: Link: Http://pan.baidu.com/s/1kTEN6uF Password: 6w41
2.2 Installation
2.2.1 Installing user root
2.2.2 Installation directory/usr/local/jdk1.6.0_45
2.2.3 Installation Method
Modify the file permissions directly to executable permissions, and then execute the file directly to
[Email protected] test]$. /jdk-6u45-linux-x64.bin
2.3 Modifying configuration files, configuring environment variables
Save the/etc/profile, and then modify
[Email protected] jdk1.6.0_45]# cp/etc/profile/etc/profile.bak.20150827
Adding Java Environment variables
Export Java_home=/usr/local/jdk1.6.0_45export path= $PATH: $JAVA _home/binexport manpath= $JAVA _home/manexport Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JAVA _home/jre/lib/rt.jar
Three-proof
[[email protected] jdk1.6.0_45]# Java-versionjava version "1.6.0_45" Java (TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot (TM) 64-bit Server VM (build 20.45-b01, Mixed mode) [[email protected] jdk1.6.0_45]# Javac-versionjavac 1.6.0_ 45
CENTOS JAVA Installation