管理服務(wù)器和受管服務(wù)器:
?? 域包含一個(gè)稱為“管理服務(wù)器”的特殊 WebLogic Server 實(shí)例,它是您配置和管理域中所有資源的中心點(diǎn),一個(gè)域有僅只有一個(gè)管理服務(wù)器實(shí)例。
?? 在生產(chǎn)環(huán)境中,應(yīng)將 Web 應(yīng)用程序、EJB 和其他資源部署到受管服務(wù)器上,管理服務(wù)器只應(yīng)用于配置和管理目的。
?? 多臺(tái)受管服務(wù)器可以組成一個(gè)“群集”,這樣可以使用單個(gè)管理服務(wù)器來簡(jiǎn)化對(duì)受管服務(wù)器實(shí)例的管理,現(xiàn)時(shí)還可以平衡負(fù)載并為關(guān)鍵應(yīng)用程序提供故障轉(zhuǎn)移保護(hù)。
組織域的基本考慮因素:
?? ? a) 應(yīng)用程序的邏輯劃分。例如,可以用一個(gè)域來專門提供最終用戶功能(例如購物車),而將另一個(gè)域?qū)S糜诤蠖素?cái)務(wù)應(yīng)用程序。
?? ? b) 物理位置。可以為企業(yè)的不同位置或分支建立單獨(dú)的域。
?? ? c) 大小。您可能發(fā)現(xiàn),將域組織成較小的單元可提高管理效率,可以由不同的系統(tǒng)管理員進(jìn)行管理。相反,您可能發(fā)現(xiàn)維護(hù)一個(gè)域或較少數(shù)目的域可以使維護(hù)一致性配置變得更容易。
啟動(dòng)受管服務(wù)器的方法:
1、在weblogic的當(dāng)前域目錄中使用命令:startManagedWebLogic [SERVER_NAME] [ADMIN_URL]
?? SERVER_NAME - 待啟動(dòng)的域中的受管服務(wù)器名字(大小寫敏感)
?? ADMIN_URL - 管理服務(wù)器地址包含端口號(hào)
?? 如:startManagedWebLogic testManagedServer http://localhost:7001
2、在weblogic的控制臺(tái)界面啟動(dòng),操作:
?? 選擇要啟動(dòng)的受管服務(wù)器,選擇"控制"->"啟動(dòng)停止"->"啟動(dòng)此服務(wù)".
?? 此時(shí)受管服務(wù)器啟動(dòng)失敗,會(huì)出現(xiàn)類似如下錯(cuò)誤信息:
?? 描述: Starting DemoManagedServer server ...
? ?? ?此任務(wù)的說明。 ?
?? 狀態(tài): FAILED
? ?? ??? ?此任務(wù)的狀態(tài)。 ?
?? 開始時(shí)間: Fri Mar 14 11:14:13 CST 2008
? ?? ??? ?啟動(dòng)此任務(wù)的時(shí)間。 ?
?? 結(jié)束時(shí)間: Fri Mar 14 11:14:14 CST 2008
??? ??? ? 完成此任務(wù)的時(shí)間。 ?
?? 異常: SecureCommandInvoker: Could not create a socket to the NodeManager running on host 'localhost:5555' to execute command 'online DemoManagedServer', reason: Connection refused: connect. Ensure that the NodeManager on host 'localhost' is configured to listen on port '5555' and that it is actively listening
? ?? ??? ?在執(zhí)行此任務(wù)時(shí)出現(xiàn)的異常。 ?
?? 日志:? ?
? ?? ?任務(wù)活動(dòng)的日志。
? ?? ?
? ?? ?解決辦法:
? ?? ?Solution 1:
?? ??? ??? ?To make a managed server start, we need to start the node manager on that machine. You can find the script to start the server in WLS_HOME\server\bin\startNodeManager.cmd or sh.
?? ??? ??? ?
?? ??? ??? ?The order in which we need to start the servers are
?? ??? ??? ?1.Start the node manager
?? ??? ??? ?2.Start the Admin server
?? ??? ??? ?3.Start the specific managed server we need to start.
?? ??? ??? ?
?? ? Solution 2:
?? ??? ??? ?Have you set up a "Machine" for each of the managed servers ?
?? ??? ??? ?
?? ??? ??? ?You need to do that (extremely simple: Machines --> Config. New (Unix) Machine ), and then under your new machine, configure the listen address under Nodemanager Tab, with the IP of the machine running the ManagedServer.
?? ??? ??? ?
?? ??? ??? ?The problem seems to be with the adress which the N.M. listens:
?? ??? ??? ?if you telnet localhost 5555, you'll get nothing ("conn refused"), but if you telnet X.X.X.X 5555, you'll get the prompt for the NM ( "Escape character is ]" )
?? ??? ??? ?
?? ??? ??? ?So, if you dont configure the managed server to speak with the nodemanager via real ip address instead of localhost (127.0.0.1), you get nothing.
群集和非群集的受管服務(wù)器之間的關(guān)鍵區(qū)別在于是否支持故障轉(zhuǎn)移和負(fù)載平衡,群集支持上述功能,而非群集不支持。
??
posted on 2008-03-14 11:48
想飛的魚 閱讀(1081)
評(píng)論(0) 編輯 收藏 所屬分類:
web