1、JDK
1)下载JDK:jdk-8u92-linux-x64.gz,上传到/usr/local/service/java目录
2)解压缩:tar -zxvf jdk-8u92-linux-x64.gz
3)配置环境变量
cd /etcvi profileexport JAVA_HOME=/usr/local/service/java/jdk1.8.0_92export JRE_HOME=/usr/local/service/java/jdk1.8.0_92/jreexport PATH=$PATH:/usr/local/service/java/jdk1.8.0_92/binexport CLASSPATH=./:/usr/local/service/java/jdk1.8.0_92/lib:/usr/local/service/java/jdk1.8.0_92/jre/lib
4)重启:shutdown -r now
5)验证:java -version