Linux下卸载Weblogic

1、进入卸载脚本所在目录


[weblogic@linuxserver ~]$ pwd

/home/weblogic

[weblogic@linuxserver ~]$ cd Oracle/Middleware/wlserver_10.3/uninstall/

[weblogic@linuxserver uninstall]$ ls

uninstall.sh  wls_uninstall.xml

 

2、运行卸载脚本

[weblogic@linuxserver uninstall]$ ./uninstall.sh

/home/weblogic/Oracle/Middleware/utils/uninstall/uninstall.sh: line 11: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/bin/java: No such file or directory

 

提示不存在相应版本的java,查看当前环境变量配置文件,与卸载脚本中的java版本不一致。

 

[weblogic@linuxserver uninstall]$ cat /home/weblogic/.bash_profile

# .bash_profile

 

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

 

# User specific environment and startup programs

 

PATH=$PATH:$HOME/bin

 

export PATH

 

JAVA_HOME=/usr/java/jdk1.8.0_45

CLASSPATH=.:$JAVA_HOME/lib/tools.jar

PATH=$JAVA_HOME/bin:$PATH

export JAVA_HOME CLASSPATH PATH

[weblogic@linuxserver uninstall]$ cat /home/weblogic/Oracle/Middleware/utils/uninstall/uninstall.sh

#!/bin/sh

# This script assumes WL_HOME is set to the product directory which is the

# target of the uninstall before this script it called.

 

# Set JAVA Home

JAVA_HOME="/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64"

 

# Set BEA Home

BEAHOME="/home/weblogic/Oracle/Middleware"

 

"${JAVA_HOME}/bin/java" ${JAVA_VM} -Xmx256m -Djava.library.path="${BEAHOME}/utils/uninstall" -Dhome.dir="${BEAHOME}" -Dinstall.dir="${WL_HOME}" -jar "${BEAHOME}/utils/uninstall/uninstall.jar" $*

 

exit $?

 

修改卸载脚本中的java,与当前环境一致。

[weblogic@linuxserver uninstall]$ vim /home/weblogic/Oracle/Middleware/utils/uninstall/uninstall.sh

 

重新运行卸载脚本

[weblogic@linuxserver uninstall]$ ./uninstall.sh

Unable to instantiate GUI, defaulting to console mode.

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/weblogic/Oracle/Middleware/utils/uninstall/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.

It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.

 

 

 

 

 

 

Welcome:

 

 

Welcome to the WebLogic Platform 10.3.6.0 uninstaller. If

you wish to proceed with the uninstallation type Next,

otherwise, please type Exit to cancel.

 

 

Enter [Exit][Next]> next

 

 

 

 

 

 

Choose Products and Components to uninstall:

--------------------------------------------

 

Check the components you want to uninstall.

 

    Release 10.3.6.0

    |_____WebLogic Server [1] x

    |    |_____Core Application Server [1.1] x

    |    |_____Administration Console [1.2] x

    |    |_____Configuration Wizard and Upgrade Framework [1.3] x

    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x

    |    |_____WebLogic SCA [1.5] x

    |    |_____WebLogic JDBC Drivers [1.6] x

    |    |_____Third Party JDBC Drivers [1.7] x

    |    |_____WebLogic Server Clients [1.8] x

    |    |_____WebLogic Web Server Plugins [1.9] x

    |    |_____UDDI and Xquery Support [1.10] x

    |    |_____Evaluation Database [1.11] x

    |_____Oracle Coherence [2] x

         |_____Coherence Product Files [2.1] x

 

 

 

 

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Next]> next

 

 

 

 

 

 

Setting Up

 

 

 

 

 

 

Removing Files

 

 

 

 

 

 

Removing registry entries

 

 

 

 

 

 

Uninstall Completed Successfully!

 

 

 

 

 

 

Uninstallation Complete

 

 

Uninstallation of selected components has completed successfully.

 

 

Press [Enter] to continue

 

最后删除安装目录。

[weblogic@linuxserver uninstall]$ cd

[weblogic@linuxserver ~]$ rm -fr Oracle/

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28536251/viewspace-1714213/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28536251/viewspace-1714213/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 在LinuxWebLogic,可以按照以下步骤进行操作: 1. 停止WebLogic服务:可以使用命令“./stopWebLogic.sh”停止WebLogic服务。 2. 删除WebLogic安装目录:可以使用命令“rm -rf /path/to/weblogic”删除WebLogic安装目录。 3. 删除WebLogic配置文件:可以使用命令“rm -rf /path/to/config”删除WebLogic配置文件。 4. 删除WebLogic用户和组:可以使用命令“userdel weblogic”和“groupdel weblogic”删除WebLogic用户和组。 5. 删除WebLogic启动脚本:可以使用命令“rm -rf /etc/init.d/weblogic”删除WebLogic启动脚本。 6. 删除WebLogic环境变量:可以使用命令“vi /etc/profile”编辑环境变量文件,删除WebLogic相关的环境变量。 以上是WebLogic的一些基本步骤,具体操作还需要根据实际情况进行调整。 ### 回答2: 在LinuxWebLogic,可以按照以下步骤进行操作: 1. 进入WebLogic的安装目录。一般情况下,WebLogic的安装目录位于/opt/weblogic(如果你是使用root用户安装的)或者/home/<username>/Oracle/Middleware(如果你是使用普通用户安装的)。 2. 找到WebLogic程序。在WebLogic的安装目录中,可以找到一个名为uninstall.sh的脚本文件。 3. 打开终端,切换到root用户(如果你之前使用root用户安装)或者普通用户。 4. 运行以下命令,执行脚本: ``` sh /opt/weblogic/uninstall.sh ``` 或者 ``` sh /home/<username>/Oracle/Middleware/uninstall.sh ``` 根据你的安装目录和用户来决定使用哪个命令。 5. 等待过程完成。过程可能会需要一些时间,取决于你的系统性能和WebLogic的安装大小。 6. 检查是否成功。一般情况下,过程会自动清除WebLogic的相关文件和目录。你可以进入安装目录和其他可能存在的WebLogic相关目录,确保已经完全删除。 请注意,在执行操作之前,确保你的WebLogic实例已经停止运行,并且没有正在运行的相关进程。另外,如果你之前在安装过程中自定义了一些路径或配置文件,可能需要手动删除这些文件,以确保彻底清理干净WebLogic的安装。 ### 回答3: 在Linux系统中WebLogic可以按照以下步骤进行操作: 1. 登录Linux系统,并以管理员或root用户身份打开终端。 2. 使用cd命令导航到WebLogic的安装目录,通常是在/opt目录下。例如,输入以下命令进入WebLogic的安装目录: cd /opt/weblogic 3. 执行命令,输入以下命令进行: ./uninstall 4. 系统将提示你确认,按照提示输入y或者yes进行确认。 5. 等待程序完成,过程中可能需要输入管理员或root密码进行验证。 6. 完成后,终端将显示成功的提示信息。 7. 验证WebLogic是否已成功。你可以尝试在终端中输入以下命令来查看是否还存在WebLogic相关的程序和文件: ps -ef | grep weblogic 如果没有任何输出结果,则表示WebLogic已被彻底。 8. 最后,你可以手动删除WebLogic的安装目录。使用以下命令删除WebLogic安装目录及其内容: rm -rf /opt/weblogic 请注意,在执行操作之前,建议先备份WebLogic相关的配置文件和数据。同时,确保你具备足够的权限来执行操作,以免造成系统故障或数据丢失。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值