In linux, when you use wget to download jdk, when you use wgetto download jdk, you will find that only a static file with a suffix of .html is downloaded. After all, jdk is large and local download
It is unrealistic to upload data to the server. Now let's tell you how to download jdk from the server. 1. solution: add a special cookie to wget: 1 www.2cto.com gpw_e24 = http % 3A % 2F % 2Fwww.oracle.com % 2F complete statement: 1 wget -- no-cookie -- header "Cookie: gpw_e24 = http % 3A % 2F % 2Fwww.oracle.com % 2F" http://download.oracle.com/otn-pub/java/jdk/7u7-b10/jdk-7u7-linux-i586.rpm and rename the downloaded jdk mv jdk-7u7-linux-* jdk-7u7-linux-i586.rpm 2. if Unable to establish SSL connection appears, add -- no-check-certificate to wget. www.2cto.com complete statement: wget -- no-cookie -- no-check-certificate -- header "Cookie: gpw_e24 = http % 3A % 2F % 2Fwww.oracle.com % 2F" http://download.oracle.com/otn-pub/java/jdk/7u7-b10/jdk-7u7-linux-i586.rpm 3. install the downloaded jdkrpm-ivh jdk-7u7-linux-i586.rpm