1、先查看是否有版本:
#rpm -qa|grep jdk
2、再卸载
#yum remove Java-*-openjdk –y #yum remove java-1.8.0-openjdk-headless-1.8.0.91-1.b14.el6.x86_64-y
卸载 greenplum: yum remove reenplum-db-5.19.0-1.el7.x86_64 -y
3、使用yum安装本地jdk的rpm包
#yum localinstall /opt/soft/jdk-8u45-Linux-x64.rpm -y