wiflish
          Loving Life! Loving Coding!
          posts - 98,comments - 98,trackbacks - 0
          管理服務(wù)器和受管服務(wù)器:
          ?? 域包含一個稱為“管理服務(wù)器”的特殊 WebLogic Server 實例,它是您配置和管理域中所有資源的中心點,一個域有僅只有一個管理服務(wù)器實例。
          ?? 在生產(chǎn)環(huán)境中,應(yīng)將 Web 應(yīng)用程序、EJB 和其他資源部署到受管服務(wù)器上,管理服務(wù)器只應(yīng)用于配置和管理目的。
          ?? 多臺受管服務(wù)器可以組成一個“群集”,這樣可以使用單個管理服務(wù)器來簡化對受管服務(wù)器實例的管理,現(xiàn)時還可以平衡負(fù)載并為關(guān)鍵應(yīng)用程序提供故障轉(zhuǎn)移保護(hù)。

          組織域的基本考慮因素:
          ?? ? a) 應(yīng)用程序的邏輯劃分。例如,可以用一個域來專門提供最終用戶功能(例如購物車),而將另一個域?qū)S糜诤蠖素攧?wù)應(yīng)用程序。
          ?? ? b) 物理位置??梢詾槠髽I(yè)的不同位置或分支建立單獨的域。
          ?? ? c) 大小。您可能發(fā)現(xiàn),將域組織成較小的單元可提高管理效率,可以由不同的系統(tǒng)管理員進(jìn)行管理。相反,您可能發(fā)現(xiàn)維護(hù)一個域或較少數(shù)目的域可以使維護(hù)一致性配置變得更容易。

          啟動受管服務(wù)器的方法:
          1、在weblogic的當(dāng)前域目錄中使用命令:startManagedWebLogic [SERVER_NAME] [ADMIN_URL]
          ?? SERVER_NAME - 待啟動的域中的受管服務(wù)器名字(大小寫敏感)
          ?? ADMIN_URL - 管理服務(wù)器地址包含端口號
          ?? 如:startManagedWebLogic testManagedServer http://localhost:7001
          2、在weblogic的控制臺界面啟動,操作:
          ?? 選擇要啟動的受管服務(wù)器,選擇"控制"->"啟動停止"->"啟動此服務(wù)".
          ?? 此時受管服務(wù)器啟動失敗,會出現(xiàn)類似如下錯誤信息:
          ?? 描述: Starting DemoManagedServer server ...
          ? ?? ?此任務(wù)的說明。 ?
          ?? 狀態(tài): FAILED
          ? ?? ??? ?此任務(wù)的狀態(tài)。 ?
          ?? 開始時間: Fri Mar 14 11:14:13 CST 2008
          ? ?? ??? ?啟動此任務(wù)的時間。 ?
          ?? 結(jié)束時間: Fri Mar 14 11:14:14 CST 2008
          ??? ??? ? 完成此任務(wù)的時間。 ?
          ?? 異常: 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ù)時出現(xiàn)的異常。 ?
          ?? 日志:? ?
          ? ?? ?任務(wù)活動的日志。
          ? ?? ?
          ? ?? ?解決辦法:
          ? ?? ?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 想飛的魚 閱讀(1090) 評論(0)  編輯  收藏 所屬分類: web
          主站蜘蛛池模板: 隆化县| 稻城县| 化隆| 南乐县| 南投市| 浦县| 启东市| 天峨县| 建德市| 南汇区| 玉树县| 舒城县| 将乐县| 黄冈市| 咸宁市| 淮阳县| 蓬安县| 久治县| 徐闻县| 扶绥县| 南通市| 沙田区| 资中县| 虞城县| 启东市| 遂溪县| 晋中市| 龙川县| 莱西市| 乌苏市| 洪湖市| 新竹市| 壶关县| 湖南省| 揭东县| 离岛区| 遵化市| 房山区| 黑河市| 辽宁省| 广丰县|