This article address http://comexchan.cnblogs.com/, author Comex Chan, respect intellectual property rights, reproduced Please indicate the source, thank you!
Many of our components need to use Oracle's latest version of the JDK, so we need to install it on our servers, here are the installation instructions:
Offline installation (for environments with no public connection)
First to the following official page:
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
After entering the download page, first select Accept agreement, then download jdk-xuxx-linux-x64.tar.gz
Then use FTP to upload to the server's/tmp directory
Perform decompression operations (we extract to the/comexhome directory as a common JDK)
Tar-zxf/tmp/jdk-8u91-linux-x64.gz-c/comexhome
Then query the decompression situation:
Ll/comexhome |grep JDK
Modify folder name
Mv/comexhome/jdk1.8.0_91/comexhome/jdk
On-line installation (for environments with a public network connection)
Direct execution of Wget acquisition
wget--no-check-certificate--no-cookies--header "Cookie:oraclelicense=accept-securebackup-cookie"/HTTP/ Download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz
Get the same after other steps and offline installation
=============================================================
This article address http://comexchan.cnblogs.com/, author Comex Chan, respect intellectual property rights, reproduced Please indicate the source, thank you!
Linux (CentOS6.5 example) installs Oracle's latest version of the JDK (JDK1.8)