搭配 IBM WebSphere Application Server 的現有安裝來使用 CM Server

您可以搭配 IBM® WebSphere® Application Server 的現有安裝而非 CM Server 內含的WebSphere Application Server 6.1 版來使用 CM Server。

如果您已隨 CM Server 安裝 Rational® ClearCase® 或 Rational ClearQuest®(並已安裝 WebSphere Application Server 6.1 版且 CM Server 在執行中),或者也安裝了 WebSphere Application Server 且要 CM Server 在不同版本的 WebSphere Application Server 而非提供的 WebSphere Application Server 6.1 版內執行, 則適用下列指示。

請注意,您建立的 WebSphere Application Server 設定檔的埠,可能與 CM Server 內含的WebSphere Application Server 6.1 版的預設值不同。例如: 如需相關資訊,請參閱配置 CM Server

如需 WebSphere Application Server 的相關資訊, 請參閱http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp

在 UNIX® 系統和 Linux 上部署 CM Server

下列 Script 會將現有的 CM Server 安裝架構部署到 WebSphere Application Server。請將下列內容複製到 Shell Script 檔中,變更其許可權,使該檔案成為執行檔,然後執行它:
#!/bin/sh
WAS_BIN=/opt/IBM/WebSphere/AppServer/bin
export WAS_BIN; 

cd /opt/IBM/RationalSDLC/common/CM/scripts
$WAS_BIN/wsadmin.sh -f installAll.jacl -rationalDir /opt/ibm/RationalSDLC
$WAS_BIN/stopServer.sh server1 
$WAS_BIN/startServer.sh server1 

停用現有的 WebSphere Application Server

如果要停用 WebSphere Application Server 的現有版本,請使用此指令來停止它:
/opt/IBM/RationalSDLC/common/eWAS/bin/stopServer.sh server1 cmprofile
cd /etc
find . -name '*ewas*' -print 
此輸出會列出 WebSphere Application Server 的開機和關機檔案:
./init.d/ewas_startup
./init.d/ewas_shutdown
./rc0.d/K30ewas_shutdown
./rc3.d/S99ewas_startup 
移除所有開機及關機檔案。

將 IBM HTTP Server 重新導向至 WebSphere Application Server

依預設,IBM HTTP Server 會將某些 URL 重新導向至 WebSphere Application Server 埠。要使 IBM HTTP Server 重新導向至您的 WebSphere Application Server 安裝架構, 請編輯 plugin-cfg.xml (/opt/rational/common/eWAS/profiles/plugin-cfg.xml)。 這是從 /opt/rational/common/IHS/conf/httpd.conf 參照的檔案。 如果想要外掛程式出現在別處,您可以移動它並更新 httpd.conf

請修改 plugin-cfg.xml, 更新埠號以符合您在建立 WebSphere Application Server 設定檔時所選取的埠。之後,以下列指令重設 IBM HTTP Server,使變更生效:
/opt/IBM/RationalSDLC/common/IHS/bin/ihs_restart
您可利用此 URL 來驗證更新項目:http://localhost/TeamWeb/services/Team

在 Windows 上部署 CM Server

下列 Script 會將現有的 CM Server 安裝架構部署到 WebSphere Application Server。請將下列內容複製到批次檔中並執行它:
set WAS_BIN=C:\Progra~1\IBM\WebSphere\AppServer\bin
c:
cd "Program Files\IBM\RationalSDLC\common\CM\scripts"
call %WAS_BIN%/wsadmin.bat -f installAll.jacl -rationalDir "C:/Program Files/IBM/RationalSDLC"
call %WAS_BIN%/stopServer.bat server1 
call %WAS_BIN%/startServer.bat server1 

server1 可以選擇性地從「Windows® 服務控制台」重新啟動。

停用現有的 WebSphere Application Server

如果要停用 WebSphere Application Server,請使用「Windows 服務控制台」來停止及停用 WebSphere Application Server 設定檔(名稱為 cmserver)。您可停止及停用服務,或刪除該服務。

將 IBM HTTP Server 重新導向至 WebSphere Application Server

依預設,IBM HTTP Server 會將某些 URL 重新導向至 WebSphere Application Server 埠。要使 IBM HTTP Server 重新導向至您的 WebSphere Application Server 安裝架構, 請編輯 plugin-cfg.xml (C:\Program Files\IBM\RationalSDLC\ common\eWAS\profiles\plugin-cfg.xml)。這是從 httpd.conf(例如 C:\Program Files\IBM\RationalSDLC\ common\IHS\conf\httpd.conf)參照的檔案。如果想要外掛程式出現在別處,您可以移動它並更新 httpd.conf

請修改 plugin-cfg.xml, 更新埠號以符合您在建立 WebSphere Application Server 設定檔時所選取的埠。之後,以下列指令重設 IBM HTTP Server,使變更生效:
C:\Program Files\IBM\RationalSDLC\common\IHS\bin\ihs_restart
您可利用此 URL 來驗證更新項目:http://localhost/TeamWeb/services/Team
相關概念
CM Server 架構
CM Server 部署模型
配置 CM Server
監視 CM Server
相關參考
CM Server 軟硬體需求
CM Server 安裝目錄

意見