好不容易免费使用了服务器,还不会安装JDK,记录一下怎么弄。
方法一:远程服务器可以联网下载(高级货)
命令:
wget -c -P /root/jdk --no-check-certificate --no-cookie --header "Cookie: s_nr=1550803238569-New; s_cc=true; oraclelicense=accept-securebackup-cookie; gpw_e24=https%3A%2F%2F%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk8-downloads-2133151.html;s_sq=%5B%5BB%5D%5D" https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz