Linux(centos7)安装jdk
1、切换到/usr/local目录下: cd /usr/local 2、下载JDK8压缩包 wget http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz 3、查看linux系统是否有安装JDK (centos有自带JDK),若是有安装的就删了 rpm -qa | grep -i jdk 4、解压压缩包 tar -zxvf jdk-8u131-linux-x64.tar.gz 5、重命名 mv jdk1.8.0_131