Installation Instructions
Installation environment: Red Hat Enterprise Linux7.1
Installation method: Source Installation
Software: jdk-7u80-linux-x64.gz
Installation
grep-qa| grep java| Xargs rpm-e--nodeps
#上传安装文件到/usr/local/
/usr/local/#删除原安装 (if previously installed)RM -RF jdk7# extract tar -zxv-f jdk-7u80-linux-x64.gz# Modify the installation directory MV jdk1. 7 . 0_80 jdk7# Verifying the installation /usr/local/jdk7/bin/java-version
#------------------The following is the configuration environment variable--------------
#追加到环境变量 cat>>/etc/profile<<eofexport java_home=/usr/local/jdk7export jre_home=/ usr/local/jdk7/jreexport CLASSPATH=.:\ $JAVA _home/lib/dt.jar:\ $JAVA _home/lib/tools.jar:\ $JRE _home/libexport PATH=\ $JAVA _home/bin:\ $JRE _home/ /etc/profile
-version
#如果出现下面的信息说明安装配置成功
[Email protected] ~]# java-version
Java Version "1.7.0_80"
Java (TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot (TM) 64-bit Server VM (build 24.80-b11, Mixed mode)
Linux under the source installation JDK7