![[Java Web] centos7.2 使用wget 下载jdk安装包](https://www.coderclan.cc/wp-content/uploads/2017/06/jdklianjie.png)
在服务器上搭建javaweb服务器时需要安装jdk,但是使用wget+下载链接是不能解压,报错如下:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
这是需要cookie,使用下面的链接格式下载就可以了。
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" +链接地址(到文件名结束,后面多...