## 软件 Oracle JDK 版本 1.8.0_11
## 删除原来的1.7 或1.8 的jdk
# yum -y remove java-1.8.0-openjdk-headless
# yum -y remove java-1.7.0-openjdk-headless
# mkdir /usr/java
## 解压自己上传的jdk.tar.gz
# tar -zxvf jdk-8u11-linux-x64.tar.gz -C /usr/java/
# vim /etc/profile.d/java.sh
JAVA_HOME=/usr/java/jdk1.8.0_11
JAVA_BIN=$JAVA_HOME/bin
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
CLASSPATH=$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/jre/lib/charsets.jar
# source /etc/profile.d/java.sh
# echo $JAVA_HOME
/usr/java/jdk1.8.0_11
# java -version
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)