CENTOS安装java

rpm -qa|grep jdk

卸载所有已安装的openjdk,查出几个就卸载几次

yum -y remove java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64

rpm -qa|grep jdk

java -verson

sudo yum install -y java-1.8.0-openjdk

你可能感兴趣的:(CENTOS安装java)