下载jdk:http://www.oracle.com/technetwork/java/javase/overview/index.html解压:tar -xzvf jdk-8u131-linux-x64.tar.gz -C /usr/local/jdk配置环境变量vim /etc/profile在文档后面添加上:JAVA_HOME=/usr/local/jdk1.8.0_131JAVA_JRE=/usr/local/jdk1.8.0_131/jre //添加这句主要是可能后面开发要用到eclipse工具JAVA_BIN=/usr/local/jdk1.8.0_131/binPATH=$PATH:$JAVA_BINCLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport JAVA_HOME JAVA_JRE JAVA_BIN PATH CLASSPATH保存退出;执行:source /etc/profile //让刚修改的环境生效...