标签:
[root@cms02 root]# rpm -qa | grep jdk java-1.7.0-openjdk-headless-1.7.0.75-2.5.4.2.el7_0.x86_64 java-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64 [root@cms02 root]# rpm -e --nodeps java-1.7.0-openjdk-1.7.0.75-2.5.4.2.el7_0.x86_64 [root@cms02 root]# rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.75-2.5.4.2.el7_0.x86_64 [root@cms02 root]# java -version -bash: /usr/bin/java: 没有那个文件或目录 [root@cms02 root]# rpm -ivh jdk-7u45-linux-x64.rpm 准备中... ################################# [100%] 正在升级/安装... 1:jdk-2000:1.7.0_45-fcs ################################# [100%] Unpacking JAR files... rt.jar... jsse.jar... charsets.jar... tools.jar... localedata.jar... jfxrt.jar... [root@cms02 root]# java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
标签:
原文地址:http://www.cnblogs.com/zhenyuyaodidiao/p/4735719.html