查看centos版本 rpm -q centos-release
移动文件 把jdk-8u251-linux-x64.tar.gz文件移动到/usr/java/ mv jdk-8u251-linux-x64.tar.gz /usr/java/
mv jdk-8u251-linux-x64.tar.gz /usr/java/
解压文件 默认解压到当前目录 [root@VM_0_12_centos java]# tar -zxvf jdk-8u251-linux-x64.tar.gz