【正文】
WebSphere 系統(tǒng)上創(chuàng)建一個(gè)可管理節(jié)點(diǎn)(APPSERVER1 和 APPSERVER2)5. 使每個(gè)可管理節(jié)點(diǎn)與信元相關(guān)聯(lián)。 2023 IBM Corporation /redbooks International Technical Support Organization第六步:創(chuàng)建群集178。測試應(yīng)用程序216。1 以后可添加更多的成員,將第一個(gè)服務(wù)器的配置(包括應(yīng)用程序)復(fù)制到所有其他成員中。您可使用該成員:216。在創(chuàng)建群集 wizard 向?qū)陂g,選擇 Create a replication domain for this cluster178。 169。 例如:configureIHS_RCHAS11_DEPMNGR 178。配置 Remote Web server management 參數(shù):該參數(shù)實(shí)現(xiàn) WAS Admin Console 對遠(yuǎn)程 HTTP 服務(wù)器的管理178。向群集中添加一個(gè)新成員,要確保在正確的節(jié)點(diǎn)(系統(tǒng))上創(chuàng)建新成員(系統(tǒng))216。將該文件傳送到遠(yuǎn)程 HTTP 服務(wù)器中216。幾個(gè)重要的日志文件位于 IFS 中的以下目錄下:/QIBM/UserData/WebSphere/AppServer/v6/Base/profiles/profile_name/logs/profile_name216。175。本機(jī)代碼對大小寫不敏感,因此創(chuàng)建 JVM 包含錯(cuò)誤信息abd76523 WsServer E WSVR0004E: The server name, SERVER1, is not a valid name.abd76523 WsServer E WSVR0009E: Error occurred during startup178。存在端口沖突:請查看 0000000a WsServerImpl E WSVR0009E: Error occurred during startup: : Unable to initialize the Name Service…..Caused by: : Unable to start bootstrap server using port 2809. Verify that no servers or other processes are already using the bootstrap server port. Also verify that the bootstrap server is being started with a user ID which has sufficient (., root, Administrator) privileges.178。 2023 IBM Corporation /redbooks International Technical Support Organization服務(wù)器不啟動(dòng) ——端口沖突(續(xù))178。 2023 IBM Corporation /redbooks International Technical Support OrganizationIPTest178。 2023 IBM Corporation /redbooks International Technical Support OrganizationJDBC 訪問跟蹤169。有兩種工具對于排除故障特別有用216。為了進(jìn)行這一跟蹤,您需要設(shè)置關(guān)于數(shù)據(jù)源的 serverTraceCategories 定制屬性(需要重啟 WebSphere profile):175。 8 – 當(dāng) WebSphere 關(guān)閉連接時(shí)保存 job 日志。 32 – 保存 SQL 信息178。 job 日志在連接終止(關(guān)閉)后創(chuàng)建178。在收集到關(guān)于問題的信息后將它關(guān)閉169。=true – 該自變量實(shí)現(xiàn) CLI 調(diào)用信息175。 確保在文件后面有三個(gè)斜線( “ / ”): 175。 改變命令行自變量,以指向新文件:=3 =1 為了實(shí)現(xiàn)跟蹤您需要重啟 WebSphere169。跟蹤175。 2023 IBM Corporation /redbooks International Technical Support OrganizationRedbooks178。 2023 IBM Corporation /redbooks International Technical Support Organization178。 04:19:4704:19:4704:191/22/2023 4:19:47 AM178。 04:19:4704:19:4704:19Friday, January 22, 2023178。 22 一月 20234:19:47 上午 04:19:47一月 21178。 1行 動(dòng) 出成果,工作出 財(cái) 富。 沒有失 敗 ,只有 暫時(shí) 停止成功!。 1成功就是日復(fù)一日那一點(diǎn)點(diǎn)小小努力的 積 累。 1不知香 積 寺,數(shù)里入云峰。 1楚塞三湘。 1意志 堅(jiān) 強(qiáng) 的人能把世界放在手中像泥 塊 一 樣 任意揉捏。 1世 間 成事,不求其 絕對圓滿 ,留一份不足,可得無限完美。 很多事情努力了未必有 結(jié) 果,但是不努力卻什么改 變 也沒有。 1做前,能 夠環(huán)視 四周;做 時(shí) ,你只能或者最好沿著以腳 為 起點(diǎn)的射 線 向前。 。 一月 21一月 2104:19:4704:19:47January 22, 2023178。 一月 2104:19:4704:19Jan2122Jan21178。 一月 21一月 21Friday, January 22, 2023178。WebSphere Application Server for iSeries V6: Building Advanced Configurations, SG24663700178。toolboxTrace175。 2023 IBM Corporation /redbooks International Technical Support Organization客戶端側(cè)( WebSphere) 跟蹤 ——Toolbox JDBC 驅(qū)動(dòng)程序178。 跟蹤文件是 EBCDIC216。 – 指向保存跟蹤信息的文件216。您可對 本機(jī) JDBC 驅(qū)動(dòng)程序 進(jìn)行不同類型的跟蹤216。通過實(shí)現(xiàn)調(diào)試消息或數(shù)據(jù)庫監(jiān)控生成許多消息216。例如,要實(shí)現(xiàn)調(diào)試消息和保存 job 日志,請將該屬性設(shè)置為 12 = 4 + 8169。175。 2 – 啟動(dòng) JDBC 服務(wù)器任務(wù)上的數(shù)據(jù)庫監(jiān)控175。跟蹤實(shí)用程序169。排除多層應(yīng)用程序的故障并不是一件輕松的工作:216。要測試該設(shè)置,請從 Qshell 運(yùn)行以下命令:/qibm/proddata/websphere/appserver/v6/base/bin/IPTest178。178。點(diǎn)擊 F13, 選擇按照本地端口分類216。Job 日志包含錯(cuò)誤信息(在 QEZJOBLOG 輸出隊(duì)列中搜索):Message . . . . : WebSphere application server not started. Cause . . . . . : The application server configuration file /QIBM/UserData/WebSphere/AppServer/V6/Base/profiles/default/config/cells/MYSYSTEM/nodes/MYSYSTEM/servers/server2/ is not valid. The reason code is 8. 8 Unable to access the configuration file. Verify that the path to the configuration file is correct and is accessible by the user profile configured for the application server. 169。 2023 IBM Corporation /redbooks International Technical Support Organization服務(wù)器不啟動(dòng) ——服務(wù)器名稱沖突178。175。 2023 IBM Corporation /redbooks International Technical Support Organization排除故障169。重啟部署管理器216。 2023 IBM Corporation /redbooks International Technical Support Organization第十二步:向群集添加成員178。執(zhí)行 configureIHS_host_name_HTTP_server_name 腳本178。使用與前面所述的配置遠(yuǎn)程 HTTP 服務(wù)器相同的方法,只是這次要對它進(jìn)行配置,以便與 部署管理器 配套使用178。需要指定您希望在哪個(gè)節(jié)點(diǎn)上創(chuàng)建每個(gè)成員。測試應(yīng)用程序216。 2023 IBM Corporation /redbooks International Technical Support Organization第六步:創(chuàng)建群集178。在創(chuàng)建群集 Wizard 向?qū)陂g,選擇 Create a replication domain for this cluster178。您可使用該成員:216。 2023 IBM Corporation /redbooks International Technical Support Organization創(chuàng)建 ND 配置的高級步驟(續(xù))6. 創(chuàng)建一個(gè)至少有一個(gè)成員的群集7. 將您的應(yīng)用程序安裝到該群集中8. 為每個(gè) HTTP 服務(wù)器創(chuàng)建一個(gè) Web 服務(wù)器定義。 2023 IBM Corporation /redbooks International Technical Support OrganizationWebSphere Network Deployment169。 2023 IBM Corporation /redbooks International Technical Support OrganizationWeb 服務(wù)器插件HTTP 服務(wù)器WAS profile( )WAS profileMachine B( HTTP 服務(wù)器) Machine A( WebSphere profile)配置 IHSWeb服務(wù)器169。 2023 IBM Corporation /redbooks International Technical Support Organization配置遠(yuǎn)程 HTTP 服務(wù)器的步驟1. 在 Machine A 上創(chuàng)建 WebSphere profilewasprofile create profileName demo2 templatePath default –portBlock 500011. 在 Machine B 上利用 模板創(chuàng)建 WebSphere profilewasprofile create profileName demo2remote templatePath 1. 在 Machine B 上創(chuàng)建一個(gè)稱為 demo2 的 HTTP 服務(wù)器2. 利用 Web Administration for i5/OS 實(shí)現(xiàn) HTTP 服務(wù)器與 demo2remote WebSphere profile 的通信1. 在此期間創(chuàng)建了一個(gè)新文件 ——configureIHS_RCHAS11_DEMO2HTTP2. 新文件位于 Machine B 上,在以下目錄下:3. /QIBM/UserData/WebSphere/AppServer/V6/Base/profiles/demo2remote/config/IHS_RCHAS11_DEMO2HTTP/configureIHS_RCHAS11_DEMO2HTTP4. 將 configureIHS_RCHAS11_DEMO2HTTP 轉(zhuǎn)移到 Machine A (WebSphere 系統(tǒng))上 profile 下的 o /bin 文件夾中5. 確保您的 WebSphere profile 在 Machine A 上運(yùn)行169??蛇x:運(yùn)行 HTTP Admin 服務(wù)器178。Machine B( HTTP 服務(wù)器系統(tǒng))具有:216。 2023 IBM Corporation /redbooks International Technical Support Organization遠(yuǎn)程 HTTP 服務(wù)器配置178。 保存修改216。虛擬主機(jī)216。 2023 IBM Corporation /redbooks International Technical Support Organization虛擬主機(jī)的設(shè)置178。請看幾個(gè)參數(shù)(標(biāo)簽)216。插件屬性面板包含:175。但在許多情況下需要使用 WebSphere Admin Console169。 2023 IBM Corporation /redbooks International Technical Support Organization如何添加 Web 服務(wù)器定義178。Web 服務(wù)器定義是一組表示您的 Web 服務(wù)器的配置參數(shù)178。 2023 IBM Corporation /redbooks International Technical Support Organization啟動(dòng)