weblogic管理服务器和受管服务器:

本文详细介绍了WebLogic环境中的管理服务器与受管服务器的概念、域组织考虑因素、启动受管服务器的方法,并阐述了群集与非群集受管服务器的关键区别,帮助开发者更高效地进行WebLogic应用部署与管理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

weblogic管理服务器和受管服务器:
域包含一个称为“管理服务器”的特殊 WebLogic Server 实例,它是您配置和管理域中所有资源的中心点,一个域有仅只有一个管理服务器实例。
在生产环境中,应将 Web 应用程序、EJB 和其他资源部署到受管服务器上,管理服务器只应用于配置和管理目的。
多台受管服务器可以组成一个“群集”,这样可以使用单个管理服务器来简化对受管服务器实例的管理,现时还可以平衡负载并为关键应用程序提供故障转移保护。

组织域的基本考虑因素:
a) 应用程序的逻辑划分。例如,可以用一个域来专门提供最终用户功能(例如购物车),而将另一个域专用于后端财务应用程序。
b) 物理位置。可以为企业的不同位置或分支建立单独的域。
c) 大小。您可能发现,将域组织成较小的单元可提高管理效率,可以由不同的系统管理员进行管理。相反,您可能发现维护一个域或较少数目的域可以使维护一致性配置变得更容易。

启动受管服务器的方法:
1、在weblogic的当前域目录中使用命令:startManagedWebLogic [SERVER_NAME] [ADMIN_URL]
SERVER_NAME - 待启动的域中的受管服务器名字(大小写敏感)
ADMIN_URL - 管理服务器地址包含端口号
如:startManagedWebLogic testManagedServer http://localhost:7001
2、在weblogic的控制台界面启动,操作:
选择要启动的受管服务器,选择"控制"->"启动停止"->"启动此服务".
此时受管服务器启动失败,会出现类似如下错误信息:
描述: Starting DemoManagedServer server ...
此任务的说明。
状态: FAILED
此任务的状态。
开始时间: Fri Mar 14 11:14:13 CST 2008
启动此任务的时间。
结束时间: Fri Mar 14 11:14:14 CST 2008
完成此任务的时间。
异常: 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
在执行此任务时出现的异常。
日志:
任务活动的日志。

解决办法:
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.

群集和非群集的受管服务器之间的关键区别在于是否支持故障转移和负载平衡,群集支持上述功能,而非群集不支持。
weblogic 服务器管理 中文版 第1章,“WebLogic服务器管理概述”描述了WebLogic服务器管理子系统的架构。 第2章,“启动与终止WebLogic服务器”说明了启动与终止WebLogic服务器的步骤 第3章,“节点管理器”说明了如何设置使用节点管理器。节点管理器被用来远程启动与终止WebLogic服务器 第4章,“配置WebLOgic服务器与集群”讲述配置在一个WebLogic服务器域资源的功能部件 第5章,“监控WebLogic域”描述了用于监控WebLogic服务器域内资源的WebLogic功能部件 第6章,“用日志消息管理WebLogic服务器”描述了如何使用WebLogic服务器本地日志与挂历WebLogic服务器域的域日志。 第7章,“部署应用管理”描述了如何把应用安装到WebLogic服务器上,以及如何部署应用组件 第8章,“配置WebLogic服务器的Web组件”说明了如何把WebLogic服务器当作Web服务器来用。 第9章,“代理对另一个HTTP服务器的请求”描述了如何使用WebLogic服务器代理对其它Web服务器的请求 第10章,“代理对WebLogic集群的请求”描述了如何代理对WebLogic服务器集群的HTTP请求。 第11章,“配置Apache-WebLogic服务器插件”说明了如何安装与配置WebLogic Server Apache插件 第12章,“配置Microsoft-IIS插件”说明了如何在Microsoft Internet Information Server安装与配置的WebLogic Server插件 第13章,“配置Netscape Enterprise Server中的插件(NSAPI)”说明了如何在Netscape Enterprise Server中安装与配置WebLogic Server插件 第14章,“安全管理”讨论了Weblogic服务器的安全资源及其管理 第15章,“管理事务”说明了如何在WebLogic服务器域中管理Java事务子系统 第16章,“管理JDBC连接”讨论了在WebLogic服务器域中的管理JDBC资源 第17章,“管理JMS”讨论了如何在WebLogic服务器域中管理Java消息服务 第18章,“管理JNDI”讨论了如何使用WebLogic JNDI名字树,包括查看编辑JNDI命名树上的对象以及如何把对象绑定到JNDI树。 第19章,“管理WebLogic J2EE连接器架构”描述了提供对其它企业信息系统连接的WebLogic J2EE平台扩展是如何被管理的。 第20章,“管理WebLogic服务器许可证”描述了如何更新BEA许可证 附录A,“使用WebLogic Java工具”描述了提供给开发人员与管理员的工具集合 附录B,“WebLogic服务器的命令行接口参考”描述了管理WebLogic域的命令行接口的语法与使用。 附录C, “Web服务器插件的参数”讨论了Web服务器插件的参数。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值