wget to download JDK

Former usually copy the link address in your browser, then you can download wget

Official website link: https://www.oracle.com/technetwork/java/javase/downloads/index.html

Now after landing when needed from the official download jdk can be downloaded, so a simple right-→ copy the download link has been unable to successfully download.

By right → Save Target As

Then copy the URL above

Comparing two URLs:

方式1:https://download.oracle.com/otn/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-x64.tar.gz

方式2:https://download.oracle.com/otn/java/jdk/8u231-b11/5b13a193868b4bf28bcb45c792fce896/jdk-8u231-linux-x64.tar.gz?AuthParam=1577017310_4a32498f1a44fa7777d47bda5a3d9446

Find more "AuthParam parameters", this is the authorization parameter information after the successful landing. Then it

But the speed is really slow .... a miserable few KB

If it is not 'neat freak' or obsessive-compulsive disorder, can also be downloaded from Huawei cloud repository:

https://repo.huaweicloud.com/java/jdk/

Published 62 original articles · won praise 3 · views 20000 +

Guess you like

Origin blog.csdn.net/Leonardy/article/details/103656468