1、 Oracle WebLogic Server 11 g 集群部署 On Linux 本文环境平台:[RedHat AS 5] , 8G RAM 软件:WebLogic Server llgRl 硬件:HpBL460刀片服务器 配置集群应用的必要条件 集群中的所有Server必须位于同一网段,并且必须是IP广播(UDP)可到达的; 集群中的所有Server必须使用相同的版本,包括Service Pack; 集群中的Server必须使用永久的静态IP地址。动态IP地址分配不能用于集群环境。如果服务器位于防火墙后面,而客户机位于防火墙外面,那么服务器必须有公共的静态IP地址,只有这样,
2、 客户端才能访问服务器; 要以CLUSTER方式运行,必须有包含CLUSTER许可的LICENSE才行;集群规划 操作系统 集群规划 操作系统 TurboLinux TurboLinux 网络配置 角色 proxy proxy TurboLinux IP: 172.19.114.203 PORT:7001 Administrator Server TurboLinux IP: 172,19.114.203 PORT:7005 TurboLinux IP: 172.19.114.204 PORT:7005 TurboLinux IP: 172.19.11
3、4.205 PORT:7005 Managed Server Managed Server Managed Server 备注 apache服务器 叩ache服务器 管理服务器 受管理服务器1 受管理服务器2 受管理服务器3 安装 Weblogicllgrl Configuration Wizard 酉己置域[wls@nodel bin]$ hostname Add or delete configuration information for Managed Servers. A typical production environment has o ne or
4、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 |_l I I I I I 1->| Serveri | All Local Addresses | 7003| N/A | false |Use above value or select another option:
5、 1 - Modify "Name"- Modify "Listen address** 2 - Modify "Listen port"- Modify "SSL enabled" 3 - DoneEnter option number to select OR [Exit][Previous][Next]> 2 < Fusion Middleware Configuration Wizard> Configure Managed Servers: Add or delete configuration information for Managed Servers. A typ
6、ical production environment has o ne or more Managed Servers. Each Managed Server is an instance of WebLogic Server used to host enterprise applications. I Name* | Listen address* | Listen port | SSL listen port | SSL enabled |_l I I I I I 1->| Serveri | All Local Addresses | 7003| N/A | false |M
7、odify nListen address" OR [Exit][Previous][Next]> < Fusion Middleware Configuration Wizard> Configure Managed Servers: Add or delete configuration information for Managed Servers. A typical production environment has o ne or more Managed Servers. Each Managed Server is an instance of WebLogic S
8、erver used to host enterprise applications. Name* | Listen address* | Listen port | SSL listen port | SSL enabled |」I I I I I 1->| Serveri | 172.19.114.203 | 7003 | N/A | false |Use above value or select another option: 1 - Modify “Name”- Modify "Listen address" 2 - Modify “Listen port"- Modify
9、HSSL enabled11
3 - DoneEnter option number to select OR [Exit][Previous][Next]> 5
10、er is an instance of WebLogic Server used to host enterprise applications. | Name* | Listen address* | Listen port | SSL listen port | SSL enabled |_l I I I I I 1| Serveri | 172.19.114,203 | 7003 | N/A | false |Use above value or select another option: 1 - Add- Modify 2 - DeleteEnter option numb
11、er to select OR [Exit][Previous][Next]> 1 < Fusion Middleware Configuration Wizard> Configure Managed Servers: Add or delete configuration information for Managed Servers. A typical production environment has o ne or more Managed Servers. Each Managed Server is an instance of WebLogic Server use
12、d to host enterprise applications. Name* | Listen address* | Listen port | SSL listen port | SSL enabled |」I I I I I 1| Serveri | 172.19.114.203 | 7003 | N/A | false |Enter name for a new OR [Exit][Previous][Next]> Server! < Fusion Middleware Configuration Wizard> Configure Managed Servers: Add
13、 or delete configuration information for Managed Servers. A typical production environment has o ne 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 |_l I I I
14、 I I 11 Serveri | 172.19.114.203 | 7003 | N/A | false |2->| Server2 | All Local Addresses | 7003 | N/A | false | Use above value or select another option: 1 - Modify “Name”- Modify "Listen address" 2 - Modify "Listen port"- Modify nSSL enabled" 3 - DoneEnter option number to select OR [Exit][Pr
15、evious][Next]> 2
16、cations. | Name* | Listen address* | Listen port | SSL listen port | SSL enabled |_l I I I I I 11 Serveri | 172.19.114.203 | 7003 | N/A | false |2->| Server2 | All Local Addresses | 7003| N/A | false | Use above value or select another option: 1 - Modify “Name”- Modify "Listen address" 2 - Modi
17、fy "Listen port"- Modify HSSL enabled11
3 - DoneModify nListen address** OR [Exit][Previous][Next]> 172.19,114.204
18、naged 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 |_l I I I I I 11 Serveri | 172.19.114.203 | 7003 | N/A | false |2->| Server? | 172.19.114.204 | 7003 | N/A | false |
19、Use above value or select another option:
1 - Modify "Name"- Modify "Listen address**
2 - Modify "Listen port"- Modify nSSL enabled"
3 - DoneEnter option number to select OR [Exit][Previous][Next]> 5
20、n information for Managed Servers. A typical production environment has o ne or more Managed Servers. Each Managed Server is an instance of WebLogic Server used to host enterprise applications. I Name* | Listen address* | Listen port | SSL listen port | SSL enabled | _l I I I I I11 Serveri | 172.1
21、9.114.203 | 7003| N/A | false |
2->| Server21 172.19.114.204 | 7003| N/A | false |Use above value or select another option:
1 - Add- Modify
2 - Delete- Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 1
22、Add or delete configuration information for Managed Servers. A typical production environment has o ne 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 |_l I
23、I I I I
11 Serveri | 172.19.114.203 | 7003 | N/A | false |2->| Server? | 172.19.114.204 | 7003 | N/A | false |
Enter name for a new OR [Exit][Previous][Next]> Server3
24、 A typical production environment has o ne or more Managed Servers4 Each Managed Server is an instance of WebLogic Server used to host enterprise applications. | Name* | Listen address* | Listen port | SSL listen port | SSL enabled |_l III I I 7003 N/A false 2| Server? | 172.19.114.204 | 7
25、003 | N/A | false |3->| Server3 | All Local Addresses | 7003| N/A | false |
Use above value or select another option:
1 - Modify “Name”
2 - Modify "Listen address"
3 - Modify “Listen port"
4 - Modify HSSL enabled11
5 - DoneEnter option number to select OR [Exit][Previous][Next]> 2
26、dleware Configuration Wizard>
Configure Managed Servers:
Add or delete configuration information for Managed Servers. A typical production environment has o ne or more Managed Servers.
Each Managed Server is an instance of WebLogic Server used to host enterprise applications.
| Name* | Listen ad 27、dress* | Listen port | SSL listen port | SSL enabled |
_l I I I I I
11 Serveri ||7003|N/A|false|
2| Server21|7003|N/A|false|3->| Server3 | All Local Addresses | 7003| N/A | false |
Modify nListen address0 OR [Exit][Previous][Next]> 28、ers:
Add or delete configuration information for Managed Servers. A typical production environment has o ne or more Managed Servers4Each Managed Server is an instance of WebLogic Server used to host enterprise applications.
| Name* | Listen address* | Listen port | SSL listen port | SSL enabled |
29、
_l I I I I I
7003
N/A
false
2| Server? |
2| Server? |
7003
N/A | false
3->| Server31 172.19.114.205 | 7003 | N/A | false |
Use above value or select another option:
1 - Modify “Name”
2 - Modify "Listen address"
3 - Modify “Listen port"
4 - Modify HSSL enabled11
5 - DoneEnter o 30、ption number to select OR [Exit][Previous][Next]> 5
31、erver used to host enterprise applications.
| Name* | Listen address* | Listen port | SSL listen port | SSL enabled |
_l I I I I I
1| Serveri | 172.19.114,203 |7003|N/A|false|
2|Server2| 172.19.114,204 |7003|N/A|false|3->| Server31 172.19.114.205 | 7003 | N/A | false |
Use above value or select 32、 another option:
1 - Add
2 - Modify
3 - Delete
4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> next
< Fusion Middleware Configuration Wizard>
Configure Clusters:
Add or delete configuration information for clusters. A cluster consists of multiple server instances w 33、or king together toprovide increased scalability and reliability.
| Name* | Cluster messaging mode | Multicast address | Multicast port | Cluster address |
_l I I I I—Enter name for a new Cluster OR [Exit][Previous][Next]> cluster1
< Fusion Middleware Configuration Wizard>
Configure Clusters:
A 34、dd or delete configuration information for clusters. A cluster consists of multiple server instances wor king together toprovide increased scalability and reliability.
| Name* | Cluster messaging mode | Multicast address | Multicast port | Cluster address |
_l I I I II
1->| cluster 1 | unicast | 35、N/A | N/A ||Use above value or select another option:
1 - Modify "Name"
2 - Modify ''Cluster messaging mode"
3 - Modify "Cluster address"
4 - DoneEnter option number to select OR [Exit][Previous][Next]> 2
36、 information for clusters. A cluster consists of multiple server instances wor king together to provide increased scalability and reliability.
*Enter index number to modify "Cluster messaging mode"l|multicast
->2|unicast3|Unspecified
Enter index number to select OR [Exit][Reset][Accept]> 1 37、 Middleware Configuration Wizard
>Configure Clusters:
Add or delete configuration information for clusters. A cluster consists of multiple server instances wor king together to
provide increased scalability and reliability.
| Name* | Cluster messaging mode | Multicast address | Multicast port | 38、Cluster address |_l I I I I
I1->| cluster 1 | multicast | 239.192.0.0 |7001||
Use above value or select another option:
1 - Add Cluster- Modify Cluster
2 - Delete Cluster- Discard Changes
Enter option number to select OR [Exit][Previous][Next]> nextFusion Middleware Configuration Wizard
>Assig 39、n Servers to Clusters:
Assign Managed Servers to a cluster in the domain.
Cluster|clusterl [1]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> ne xt
< Fusion Middleware Configuration Wizard>
Configure Machines:
Add or delete machines. A machine hos 40、ts one or more WebLogic Server instances. The Admin Server and Node Manager use this machine definition to start remote servers.
| Name* | Node manager listen address | Node manager listen port |_l I I I
Enter name for a new Machine OR [Exit][Previous][Next]> nextFusion Middleware Configuration Wi 41、zard
>Creating Domain...
0%25%50%75%100%[111]
t*1* *1* 1I... ... “不... ... ...... ... ... “不... rjw rjw...rj* ... ... “不I
编辑WebLogic 口令文件
仓!J 建目录 42、
建议按照顺序启动服务器,只有当管理服务器首先启动完毕后,受管服务器才能启动完成。当 所有服务器的控制台上出现Server started in RUNNING mode字样时,整个集群启动完毕。
启动管理控制台1、以weblogic用户身份登录登录web03 ;
2、切换至!! 43、ain/ 44、Welcome:
Choose between creating and extending a domain. Based on your selection, the Configuration Wizard g uides you through the steps
to generate a new or extend an existing domain.
->1 (Create a new WebLogic domain| Create a WebLogic domain in your projects directory.
2|Extend an existing We 45、bLogic domain| Use this option to add new components to an existing domain and modify configuration settings.
Enter index number to select OR [Exit][Next]> 1 46、omain by selecting from t he required components or
by selecting from a list of existing domain templates.
->l|Choose Weblogic Platform components| You can choose the Weblogic component(s) that you want supported in your domain.
2|Choose custom template| Choose this option if you want to use an e 47、xisting template. This could be a custom created templa
te using the Template
3.执行 nohup ./startManagedWebLogic.sh Serveri :〃372.19.114.203:7001 & 启动节点4 [204]服务
1、以weblogic用户身份登录登录web04;
2、切换至!! 48、2 ://372.19.114.203:7001 & 启动节点7 [205]服务
1、以weblogic用户身份登录登录web05 ;
2、切换至kyoujweblogic_base>/domain/ 49、r example:
./startManagedWebLogic.sh managedserverl ://nodel.nhis :7001停止WebLogic服务
停止节点3 [203]服务1、以weblogic用户身份登录登录web03 ;
2、切换至!! 50、gic用户身份登录登录web04 ;2、切换至ij






