1.jdk安装包准备: 下载链接:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html,下载jdk-8u171-linux-x64.tar到电脑 2.在/usr/local/文件夹下创建java文件夹,并将下载文件放入到java文件夹下. 3.解压安装包:sudo tar xvzf jdk-8u171-linux-x64.tar.gz 4.设置jdk环境变量:$sudo vim ~/…