JDK1.8安装

tar -xvf /data/hadoop/jdk-8u60-linux-x64.tar.gz -C /usr/software/
cd /usr/software/
mv jdk1.8.0_60/ java_1.8
chmod a+x java_1.8/
cd java_1.8/
vi /etc/profile
JAVA_HOME=/usr/software/java_1.8
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
source /etc/profile
java -version
posted @ 2018-02-18 20:46  听雨轩主  阅读(101)  评论(0编辑  收藏  举报