A few days ago, I went to Alibaba cloud to buy a cloud server with student privileges . Now download JDK When I was in trouble , Enter the command :
After downloading , File size is 8K…8K…
Later I thought of , It should be some kind of protection , Monitoring networks , Found to have cookie protective .
So I changed the order to :
wget -c -P /java/jdk --no-check-certificate --no-cookie --header "Cookie: s_nr=1479818001999; s_cc=true; s_sq=oracledevall%3D%2526pid%253Docom%25253Aen-us%25253A%25252Fcn%25252Fjava%25252Fjavase%25252Foverview%25252F%2526pidt%253D1%2526oid%253Dotn%25253Acn%25253Atab%25253Ajava%25253A%2525E4%2525B8%25258B%2525E8%2525BD%2525BD%2526oidt%253D1%2526ot%253DA%2526oi%253D1; ELOQUA=GUID=4b703a6e148b4855a6708de929b383a5; gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fcn%2Fjava%2Fjavase%2Fdownloads%2Fjdk7-downloads-1880260.html; oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm
Download successfully ：
The download directory is /java/jdk Catalog
There's a shorter code , It's fine too ：
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm
The downloaded directory is the current directory ！
OK, I hope you have solved it linux download jdk problem .
This article is written by [ Familiar with memory ] To write , All rights reserved .
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .