WebSphere WebSphere Enterprise Service Bus, Version 6.0.1 作業系統: AIX, HP-UX, Linux, Solaris, Windows

無聲自動解除安裝產品

請使用此程序來無聲自動解除安裝 IBM WebSphere ESB 和基礎 WebSphere Application Server Network Deployment 副本。

開始之前

在您使用本程序來解除安裝 WebSphere ESB 之前,請執行下列動作:

執行這項作業的原因和時機

若要無聲自動解除安裝 WebSphere ESB,請執行下列動作:

這項作業的步驟

  1. 以 root 使用者身分(若為 Linux 或 UNIX 系統)或管理者群組中的成員身分 (若為 Windows 系統)登入。
  2. 如果您要解除安裝基礎 WebSphere Application Server Network Deployment 產品,請執行 WebSphere Application Server 之 Web 伺服器外掛程式的解除安裝程式。

    如果您的系統含有一個配置成搭配 WebSphere Application ServerNetwork 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. 移除受管理節點中,所有說明已經刪除之部署管理程式的配置項目。

    共用拓蹼是把核心產品檔案安裝在多部機器上。其中一部機器有部署管理程式, 而其他機器則有從自訂設定檔建立的受管理節點。如果您所刪除的安裝環境建有自訂設定檔, 且其中的節點已聯合至另一個安裝環境中的部署管理程式 Cell, 您必須將配置從部署管理程式中移除。

    受管理節點中節點配置問題支援的正式說明,是您在起始安裝之後,使用 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. 編輯 setupCmdLine.sh 檔(Linux 或 UNIX 作業系統)或 setupCmdLine.bat 檔 (Windows 系統),並將 Cell 名稱改為原始的 Cell 名稱。
      視您的平台而定,檔案位於下列目錄之一中: 以本例來說,profile_root 代表節點設定檔的安裝目錄:
      • LINUX platforms For Windows platforms Linux 與 UNIX 平台: profile_root/bin
      • For Windows platforms Windows 平台: profile_root\bin
      請將 WAS_CELL 變數的值,改為原始的 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 6.0 版資訊中心 (http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp)。


Task topic

使用條款 | 此頁的評等

時間戳記圖示前次更新: 5 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. All Rights Reserved.
本資訊中心採用 Eclipse 技術。(http://www.eclipse.org)