阿里云服务器 linux下载 jdk
直接从本地下载包上传比较慢。直接在服务器上下载安装包:
1.进入orcle官网;
2.选择需要下载的版本,下载需要同意orcle协议,
3.点击下载,获取到下载请求的cookie, 复制所有cookie
4.使用wget命令下载包,速度很快
wget --no-cookies --no-check-certificate --header 'Cookie: s_fid=11B2CD22D31EC450-3E1C1A93CD4D7302; ELOQUA=GUID=B0526A3008C347E4810409015ABAE803; atgRecVisitorId=13A5QRGkGgRFKCOjy43CvYFq7_BXCgly-DdCSGi9MW67cZ8C404; s_cc=true; oraclelicense=accept-securebackup-cookie; gpw_e24=https%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk8-downloads-2133151.html; RT="sl=3&ss=1552628473953&tt=19601&obo=0&bcn=%2F%2F36fb78d7.akstat.io%2F&sh=1552628844746%3D3%3A0%3A19601%2C1552628641430%3D2%3A0%3A16251%2C1552628485476%3D1%3A0%3A11506&dm=oracle.com&si=192d26bd-1fc9-4d81-990d-3a0d3a5080f0&ld=1552628844746&nu=https%3A%2F%2Fdownload.oracle.com%2Fotn-pub%2Fjava%2Fjdk%2F8u201-b09%2F42970487e3af4f5aa5bca3f542482c60%2Fjdk-8u201-linux-x64.tar.gz&cl=1552628981439"; s_nr=1552628981444-New; s_sq=%5B%5BB%5D%5D' https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz
效果如下