码迷,mamicode.com
首页 > 数据库 > 详细

批量下载oracle jdk

时间:2019-12-21 18:23:45      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:wget   sparc   lin   document   zip   cert   ola   java8   ade   

 

1.打开

https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html

2.同意条款

3.浏览器F12 Console 

粘贴 下面语句得到所有的下载地址

document.querySelectorAll("a[href^=‘https://download.oracle.com/otn/java/jdk/‘]").forEach(e=>console.log(e.href))

技术图片

 

 

 

4.如果批量下载可以地址保存到一个文件中,就是官网地址中把otn改成otn-pub

jdk-8u231.txt

https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-arm32-vfp-hflt.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-arm64-vfp-hflt.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-i586.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-x64.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-macosx-x64.dmg
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-solaris-sparcv9.tar.Z
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-solaris-sparcv9.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-solaris-x64.tar.Z
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-solaris-x64.tar.gz
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-i586.exe
https://download.oracle.com/otn-pub/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-windows-x64.exe
jdk-11.0.5.txt
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_linux-x64_bin.deb
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_linux-x64_bin.tar.gz
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_osx-x64_bin.dmg
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_osx-x64_bin.tar.gz
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_solaris-sparcv9_bin.tar.gz
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_windows-x64_bin.exe
https://download.oracle.com/otn-pub/java/jdk/11.0.5+10/e51269e04165492b90fa15af5b4eb1a5/jdk-11.0.5_windows-x64_bin.zip

5.下载命令:

wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" -i download.txt

 如果单个文件,就换成具体的下载地址

我用的国外的服务器下载挺快的。

技术图片

 

批量下载oracle jdk

标签:wget   sparc   lin   document   zip   cert   ola   java8   ade   

原文地址:https://www.cnblogs.com/startnow/p/12077653.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!