当前位置:文档之家› linux环境weblogic集群简单配置

linux环境weblogic集群简单配置

Linux下Weblogic集群配置初步域,集群,管理服务器和被管服务器之间的关系Weblogic域是一个服务器/集群的管理组,用户可以通过某个中央位置来管理、监控整个服务器域,这个中心就是管理服务器,相对的,受控服务器或者叫被管服务器是指域中除了管理服务器以外的所有的服务器。

Weblogic集群是一个weblogic Server组,在一个集群中的服务器可以获得集群范围的命名服务、负载平衡以及容错等功能。

所以,一个weblogic域可以同时管理多个集群以及多个服务器实例。

另外,还有一个节点管理器的概念,节点管理器是指在物理的机器上运行的一个守护进程,通过它,管理服务器可以获得诸如在控制台中强制重启远程机器上的server等功能(没有节点管理器的情况下也是可以强制关闭远程服务器的,但是不能重启)。

除此之外,据说节点管理器还可以自动检查自己机器上的server实例(健康检查),当发现某个实例出现故障的时候,可以自动进行重启,这个没试过。

注意事项1.本文的weblogic均配置在linux环境下2.集群中管理服务器和被管服务器之间有用到ip组播UDP,所以这些服务器之间必须是UDP可以到达的。

3.好像动态ip的机器不能用于集群当中4.最佳实践说:请不要把管理服务器设置在集群当中5.本文所配置的集群只是实现了web层次上的负载平衡和容错,也就是servlet和jsp,其他的j2ee组件如ejb,jdbc,jms等都可以集群化。

本例测试域的规划配置过程建立管理服务器启动linux下的配置向导进入bea目录下的weblogic81/common/bin目录输入./config.sh,这里使用的终端登陆,所以没有图形环境,程序会以控制台模式启动第一步:选择建立新的域:启动配置向导后,系统提示如下:<------- BEA WebLogic Configuration Wizard---------->Create or Extend a Configuration:---------------------------------Choose between creating and extending a configuration. Based on your selection, the Configuration Wizard guides you throughthe steps to generate a new or extend an existing configuration.->1|Create a new WebLogic configuration| Start here to create a WebLogic configuration in your projects directory. 2|Extend an existing WebLogic configuration| Start here to extend an existing WebLogic configuration. Use this option to add applications and services,|including Database access (JDBC) and Messaging (JMS). This option also enables you to extend functionality by enabling|WebLogic Workshop.Enter index number to select OR [Exit][Next]> 1录入1回车,建立一个新的域。

第二步:选择模版系统提示选择一个建立域的模版,资料上讲配置向导的配置过程可以另存为模版,以便下次配置的时候使用,没试过下次回去试试。

<-------- BEA WebLogic Configuration Wizard -------->Select a Domain Template:-------------------------Please select a template from the list or select another directory of templates.* [/usr/local/bea/weblogic81/common/templates/domains]->1|Basic WebLogic Server Domain 8.1.4.0| BEA Systems, Inc.| Create a basic WebLogic Server domain without installing sample applications.2|WebLogic Server Examples Domain 8.1.4.0| BEA Systems, Inc.| Create the WebLogic Server Examples domain in a directory outside of the installed kit. The Examples domain contains |a collection of examples to show best practices for coding individual J2EE APIs.3|Avitek Medical Records Sample Domain 8.1.4.0| BEA Systems, Inc.| Create the Avitek Medical Records domain in a directory outside of the installed kit. The Avitek Medical Records is|a WebLogic Server sample application suite that concisely demonstrates all aspects of the J2EE platform.4|Select another directory locationEnter index number to select OR [Exit][Previous][Next]> 1这里我们选择1,使用基础的模版第三步:是否以快速模式进行第三步系统提示是否以快速模式进行配置,这里选择2。

<--------- BEA WebLogic Configuration Wizard ----------->Choose Configuration Option:----------------------------*Do you want to run the wizard in express mode?->1|Yes2|NoEnter index number to select OR [Exit][Previous][Next]> 2第四步:配置管理服务器现在系统提示我们配置管理服务器,把管理服务器的名字改一下,改成adminServer就可以了。

<------- BEA WebLogic Configuration Wizard -------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. TheAdministration Server hosts the Administration Console which is used to performadministrative tasks.| Name | Value |_|__________________|_____________________|1| *Name: | myserver |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Select Option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"Enter option number to select OR [Exit][Previous][Next]> 1输入1之后,根据系统提示输入新的管理服务器的名称adminServer第五步:配置被管服务器根据下面系统的提示,配置被管服务器<--------- BEA WebLogic Configuration Wizard ---------->Configure Managed Servers:--------------------------Add or delete configuration information for managed servers. A typical production environment has one or more managedservers. Each managed server is an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled |_|_______|________________|_____________|_________________|_____________| Enter name for a new Server OR [Exit][Previous][Next]> mServer1被管服务器我们设置两个:mServer1和mServer2,mServer1和管理服务器在一台机器上,所以端口设置为7003避免和管理服务器冲突。

相关主题