>>>cd /usr/lib
>>>mkdir java
>>>cd java
###这里的参数表示接收他们的协议
>>>wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz
>>>tar zxvf jdk-8u131-linux-x64.tar.gz
>>>vim ~/.bashrc
export JAVA_HOME=/usr/lib/java/jdk1.8.0_131 export JRE_HOME=${JAVA_HOME}/jre export PATH=${JAVA_HOME}/bin:$PATH
>>>source ~/.bashrc
>>>java -version