WebSphere WebSphere Enterprise Service Bus V6.0.1 操作系统: AIX, HP-UX, Linux, Solaris, Windows

以静默方式卸载产品

使用此过程以静默方式卸载 IBM WebSphere ESB 和底层 WebSphere Application Server Network Deployment 副本。

在开始之前

在使用此过程卸载 WebSphere ESB 之前,执行下列操作:

执行此任务的目的和时间

要以静默方式卸载 WebSphere ESB,执行下列操作:

完成此任务需要执行的步骤

  1. 在 Linux 或 UNIX 系统上以 root 用户的身份登录,或在 Windows 系统上以隶属于 Administrator 组用户的身份登录。
  2. 如果要卸载底层 WebSphere Application Server Network Deployment 产品,则对 WebSphere Application Server 的 Web 服务器插件运行卸载程序。

    如果系统包括配置为与 WebSphere Application Server Network Deployment 一起运行的 Web 服务器,则卸载这些插件以从 Web 服务器除去该配置。请参阅 WebSphere Application Server Network Deployment 信息中心(网址为 http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp)中有关此产品的卸载过程。

  3. 如果已安装部署管理器,则使用 stopManager 命令停止部署管理器 dmgr 进程。
    停止机器上正在运行的所有 dmgr 进程。例如,根据平台的不同发出下列其中一个命令(其中 profile_root 表示部署管理器概要文件的安装目录):
    • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上:profile_root/bin/stopManager.sh -user user_ID -password password
    • For Windows platforms 在 Windows 平台上:profile_root\bin\stopManager.bat -user user_ID -password password
  4. 使用 stopNode 命令停止节点代理程序进程。
    如果节点联合至系统上的部署管理器,则停止可能在带有联合节点的每台机器上运行的节点代理进程。例如,根据平台的不同发出下列其中一个命令(其中 profile_root 表示联合节点的安装目录)以停止节点代理进程:
    • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/bin/stopNode.sh
    • For Windows platforms 在 Windows 平台上: profile_root\bin\stopNode.bat
    如果服务器正在运行并且已经启用了安全性,则改为使用下列其中一个命令:
    • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/bin/stopNode.sh -user user_ID -password password
    • For Windows platforms 在 Windows 平台上: profile_root\bin\stopNode.bat -user user_ID -password password
  5. 使用 stopServer 命令停止正在运行的每个服务器。
    停止机器上的所有概要文件中的所有服务器进程。例如,根据平台的不同发出下列其中一个命令来停止概要文件中的服务器 server1。在此示例中,profile_root 表示概要文件的安装位置:
    • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/bin/stopServer.sh server1
    • For Windows platforms 在 Windows 平台上: profile_root\bin\stopServer.bat server1
    如果服务器正在运行并且已经启用了安全性,则改为使用下列其中一个命令:
    • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/bin/stopServer.sh server1 -user user_ID -password password
    • For Windows platforms 在 Windows 平台上: profile_root\bin\stopServer.bat server1 -user user_ID -password password
  6. 可选: 备份配置文件和日志文件以便以后必要时进行参考。

    卸载程序不会除去 install_root 目录中的日志文件。如果选择卸载底层 WebSphere Application Server Network Deployment 产品,则它会确实除去所有概要文件及所有概要文件中的所有数据。

    备份每个概要文件的 config 文件夹和 logs 文件夹以便以后必要时进行参考。因为不能重复使用概要文件,所以没有必要备份整个概要文件。

  7. 运行用于以静默方式卸载 WebSphere ESB 的命令。
    • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上:
      install_root/_uninstwbi/uninstall -silent
      [-W uninstallWelcomePanel_UninstallWizardBean.uninstallUnderlyingWAS  \
      ="true"]
    • For Windows platforms 在 Windows 平台上:
      install_root\_uninstwbi\uninstall.exe -silent
      [-W uninstallWelcomePanel_UninstallWizardBean.uninstallUnderlyingWAS  \
      ="true"]

    其中 –W uninstallWelcomePanel_UninstallWizardBean.uninstallUnderlyingWAS =“true” 选项可用来卸载底层 WebSphere Application Server Network Deployment 安装。如果想要保留 WebSphere Application Server Network Deployment 安装,则不要包括此选项。

  8. 除去受管节点中描述已删除部署管理器的配置条目。

    常用拓扑是在多台机器上安装核心产品文件。一台机器安装部署管理器,而其他机器为定制概要文件创建受管节点。如果删除的安装就是您在其中创建定制概要文件的安装并且您将节点联合至另一安装中的部署管理器单元,则必须从部署管理器中除去该配置。

    对受管节点中的节点配置问题的支持的正式声明为:在初始安装后使用 backupConfig 命令。每次对配置作出必须保存的重大更改后,应再次使用该命令。借助有效的配置备份,您总是可以使用 restoreConfig 命令来回复配置中的先前存在状态。

    还可在带有受管节点的机器上使用下列其中一个命令以在部署管理器未运行的情况下除去该节点。在此示例中,profile_root 表示受管节点概要文件的安装目录:
    • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/bin removeNode.sh -force
    • For Windows platforms 在 Windows 平台上: profile_root\bin removeNode.bat -force

    如果必须手工清除受管节点上的配置,可尝试以下不支持的过程:

    1. 如果当前名称不是原始名称,则将节点的 cell_name 目录重命名为原始名称。
      转至下列其中一个目录,然后将 cell_name 目录重命名为原始名称。在此示例中,profile_root 表示节点概要文件的安装目录:
      • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/config/cells/
      • For Windows platforms 在 Windows 平台上: profile_root\config\cells\
    2. 如果 dmgr_node_name 目录存在,则删除它。
      转至下列其中一个目录以查找必须删除的 dmgr_node_name 目录。在此示例中,profile_root 表示节点概要文件的安装目录:
      • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/config/cells/original_cell_name/nodes
      • For Windows platforms 在 Windows 平台上: profile_root\config\cells\original_cell_name\nodes
    3. 在 Linux 或 UNIX 操作系统上编辑 setupCmdLine.sh 文件,或在 Windows 系统上编辑 setupCmdLine.bat 文件并将单元名更改为原始单元名。
      根据平台的不同,该文件在下列其中一个目录中。在此示例中,profile_root 表示节点概要文件的安装目录:
      • LINUX platforms For Windows platforms 在 Linux 和 UNIX 平台上: profile_root/bin
      • For Windows platforms 在 Windows 平台上: profile_root\bin
      WAS_CELL 变量的值更改为原始单元名。
  9. 除去部署管理器中描述已删除受管节点的所有配置条目。

    打开部署管理器的管理控制台,然后单击系统管理 > 节点。选择希望删除的节点旁的复选框,然后选择除去节点

    如果管理控制台不能成功除去该节点,则在部署管理器正在运行的情况下运行以下命令:
    • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: install_root/bin/cleanupNode.shnode_name
    • For Windows platforms 在 Windows 平台上: install_root\bin\cleanupNode.batnode_name

    对部署管理器中的节点配置问题的支持的正式声明为:在初始安装后使用 backupConfig 命令。每次对配置作出必须保存的重大更改后,应再次使用该命令。借助有效的配置备份,您总是可以使用 restoreConfig 命令来回复配置中的先前存在状态。

    如果必须手工清除该配置,可尝试以下不支持的过程:

    1. 在部署管理器的 nodes 目录中除去已删除节点的配置目录。
      转至下列其中一个目录以查找 deleted_node_name 文件。在此示例中,profile_root 表示部署管理器概要文件的安装目录:
      • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/config/cells/cell_name/nodes
      • For Windows platforms 在 Windows 平台上: profile_root\config\cells\cell_name\nodes
    2. 在部署管理器的 buses 目录中除去已删除节点的配置目录。
      转至下列其中一个目录以查找 deleted_node_name 文件。在此示例中,profile_root 表示部署管理器概要文件的安装目录:
      • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/config/cells/cell_name/buses
      • For Windows platforms 在 Windows 平台上: profile_root\config\cells\cell_name\buses
    3. 在部署管理器的 coregroups 目录的每个子目录中编辑 coregroup.xml 文件。查找类型为 coreGroupServers 的元素。除去引用已删除节点的所有 coreGroupServers 元素。
      转至下列其中一个目录以查找该文件。在此示例中,profile_root 表示部署管理器概要文件的安装目录:
      • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/config/cells/cell_name/coregroups/deleted_node_name
      • For Windows platforms 在 Windows 平台上: profile_root\config\cells\cell_name\coregroups\deleted_node_name
    4. 在部署管理器的 nodegroups 目录的每个子目录中编辑 nodegroup.xml 文件。查找类型为 members 的元素。除去引用已删除节点的所有 members 元素。
      转至下列其中一个目录以查找该文件。在此示例中,profile_root 表示部署管理器概要文件的安装目录:
      • LINUX platforms UNIX platforms 在 Linux 和 UNIX 平台上: profile_root/config/cells/cell_name/coregroups/deleted_node_name
      • For Windows platforms 在 Windows 平台上: profile_root\config\cells\cell_name\coregroups\deleted_node_name

结果

此过程将卸载 WebSphere ESB 和(如果选择了的话) WebSphere Application Server Network Deployment。在运行静默卸载后,目录结构只留下包括 logs 目录在内的很少几个目录。

卸载程序将一些日志文件留在此目录中,包括如下所示:
uninstlog.txt 文件记录文件系统或其他不寻常的错误。在日志中查找 INSTCONFSUCCESS 指示符(表示成功):
Uninstall, com.ibm.ws.install.ni.ismp.actions.
   ISMPLogSuccessMessageAction, msg1, 
   INSTCONFSUCCESS

下一步做什么?

如果打算将产品重新安装到同一安装根目录中,则根据卸载成功与否,您必须执行下列其中一个操作:

有关本主题中提到的命令的更多信息,请参阅 WebSphere Application Server Network Deployment V6.0 信息中心(网址为 http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp)。


任务主题

使用条款 | 评价此页

Timestamp icon上次更新时间: 3 Mar 2006
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wesb.doc.nl1_6.0.1\doc\tins_uninst_silent.html

(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
本信息中心基于 Eclipse 技术。(http://www.eclipse.org)