诗和远方
wget oracle jdk1.8
wget --no-check-certificate --no-cookie --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.rpm
wget 不换行
安装jdk
rpm -ivh jdk-8u171-linux-x64.rpm
结束
ok之后可以通过 java -version
查看jdk版本