网站首页 think技术
centos yum 安装JAVA
发布时间:2019-04-11 09:33查看次数:2374
查看CentOS自带JDK是否已安装
1 | [root@ test ~] # yum list installed |grep java |
若有自带安装的JDK,应如下操作进行卸载CentOS系统自带Java环境
1 2 3 4 5 6 7 8 9 10 | [root@ test ~] # java -version java version "1.7.0_181" OpenJDK Runtime Environment (rhel-2.6.14.8.el6_9-x86_64 u181-b00) OpenJDK 64-Bit Server VM (build 24.181-b00, mixed mode) [root@ test ~] # yum -y remove java-1.7.0-openjdk* [root@ test ~] # yum -y remove tzdata-java.noarch [root@ test ~] # java --version - bash : /usr/bin/java : No such file or directory |
查看yum库中的Java安装包
1 2 3 4 5 6 7 8 9 10 11 12 13 14 关键字词:javascript## |