1)下载:https://pan.baidu.com/s/1bAywDi9o5UMnuQTzICqhTg
2)安装:
rpm -ivh jdk-8u60-linux-x64
3)设置环境变量
vi /etc/profile
末尾插入
export JAVA_HOME=/usr/java/jdk1.8.0_60 export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=.:/usr/java/jdk1.8.0_60/lib:/usr/java/jdk1.8.0_60/jre/lib:$CLASSPATH