一、下载rpm包
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm
二、安装JDK
rpm -ivh jdk-17_linux-x64_bin.rpm
三、检查安装版本
java -version
wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm
rpm -ivh jdk-17_linux-x64_bin.rpm
java -version