没有合适的资源?快使用搜索试试~ 我知道了~
首页linux环境weblogic集群简单配置.pdf
linux环境weblogic集群简单配置.pdf

linux环境weblogic集群简单配置.pdflinux环境weblogic集群简单配置.pdflinux环境weblogic集群简单配置.pdflinux环境weblogic集群简单配置.pdflinux环境weblogic集群简单配置.pdflinux环境weblogic集群简单配置.pdflinux环境weblogic集群简单配置.pdf
资源详情
资源评论
资源推荐

Weblogicfans 中文爱好者
(http://www.weblogicfans.net)
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 等都可以集群化。
本例测试域的规划
Ip/port server 注释
10.21.18.40:7001 adminServer 管理服务器
10.21.18.40:7003 mServer1 被管服务器 1
10.21.18.41:7001 mServer2 被管服务器 2
10.21.18.40:7004 proxyServer 代理服务器

配置过程
建立管理服务器
启动 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 through
the 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 location
Enter 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|Yes
2|No
Enter 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. The
Administration Server hosts the Administration Console which is used to perform

administrative 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 managed
servers. 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 避免和管理服务器冲突。
mServer2 的监听地址一定要设置成 ip,否则在启动被管服务器 2 的时候会得到这样一个错
误:using the same address as the admin server(这个错挺傻的我觉得),如果是实际的集群配
置的话,这里建议都写成 ip 的形式。
配置完成的画面如下:
| Name* | Listen address | Listen port | SSL listen port | SSL enabled |
_|_________|___________________|_____________|_________________|_____________|
1| mServer1| 10.21.18.41 | 7003 | N/A | false |
->2|mServer2|10.21.18.41 | 7001 | N/A | false |
剩余15页未读,继续阅读














安全验证
文档复制为VIP权益,开通VIP直接复制

评论2