通过wget在Linux上下载Java JDK会显示在许可证页面上

通过wget在Linux上下载Java JDK会显示在许可证页面上,第1张

通过wget在Linux上下载Java JDK会显示在许可证页面上

针对Oracle JDK 11的更新

wget --no-check-certificate -c --header "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/11+28/55eed80b163941c8885ad9298e6d786a/jdk-11_linux-x64_bin.tar.gz

为JDK 10.0.2更新

wget --no-check-certificate -c --header "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/10.0.2+13/19aef61b38124481863b1413dce1855f/jdk-10.0.2_linux-x64_bin.tar.gz

为JDK 10.0.1更新

wget --no-check-certificate -c --header "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/10.0.1+10/fb4372174a714e6b8c52526dc134031e/jdk-10.0.1_linux-x64_bin.tar.gz

JDK 9的更新 ,看起来您现在可以直接从java.net下载它,而无需发送头文件

wget http://download.java.net/java/GA/jdk9/9/binaries/jdk-9+181_linux-x64_bin.tar.gz

已针对JDK 8u191更新

TAR GZ:

wget --no-cookies --no-check-certificate --header "cookie: gpw_e24=http%3a%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk8-downloads-2133151.html; oraclelicense=accept-securebackup-cookie;" "https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz"

千次曝光收益:

wget --no-cookies --no-check-certificate --header "cookie: gpw_e24=http%3a%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk8-downloads-2133151.html; oraclelicense=accept-securebackup-cookie;" "https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.rpm"

已针对JDK 8u131更新

千次曝光收益:

  wget -c --header "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm

TAR GZ:

 wget -c --header "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz

使用curl的RPM:

 curl -v -j -k -L -H "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm > jdk-8u112-linux-x64.rpm

在上述所有情况下,将“ i586”替换为“ x64”以下载32位版本

  • -j- >垃圾饼干
  • -k- >忽略证书
  • -L- >跟随重定向
  • -H [arg] ->标头

curl
可以代替
wget

JDK 7u79的更新

TAR GZ:

wget --no-check-certificate --no-cookies --header "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz

使用curl的RPM:

curl -v -j -k -L -H "cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm > jdk-7u79-linux-x64.rpm

再次确保您为要下载的版本指定正确的URL。您可以在以下位置找到URL:Oracle
JDK下载站点

从2012年6月9日起的原始答案

如果要使用从命令行从命令行下载Oracle JDK

wget
,则有一种解决方法。运行
wget
命令,如下所示:

wget --no-cookies --header "cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.tar.gz"

请确保将下载链接替换为您要下载的版本的正确链接。



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4981718.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-14
下一篇 2022-11-14

发表评论

登录后才能评论

评论列表(0条)

保存