Java 解决Linux终端wget下载jdk需要授权

阅读(1761)

在JDK下载页面上,http://www.oracle.com/technetwork/java/javase/downloads/,需要Accept License Agreement才能下载。在wget获取时,同样需要传递同意协议的cookie:

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-i586.tar.gz
Tags: