1、官网下载JDK RPM安装包
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2、安装
rpm -ivh jdk-8u144-linux-x64.rpm
3、安装完成
java -version