weblogic_10.3.5多机集群配置实测完整步骤(windows版)
weblogic10.3优化设置

Weblogic10.3_Windows优化设置优化说明: (2)一、Weblogic服务程序设置: (2)1、设置JDK内存: (2)2、设置线程数: (3)3、Weblogic数据库连接池连接数设置: (3)4、Weblogic的服务设置[配置\优化]: (4)二、Windows服务器设置: (4)1、修改最高端口号和TCP/IP释放连接时间: (4)三、Oracle数据库设置: (5)1、Oracle线程数设置: (5)优化实例: (5)一、Weblogic10.3_Windows集群布署 (5)1、机器配置: (6)2、Weblogic优化设置: (6)二、Weblogic10.3_Windows单机布署 (7)1、机器配置: (7)2、Weblogic优化设置: (7)优化说明:一、Weblogic服务程序设置:1、设置JDK内存:修改weblogic\user_projects\domains\base_domain\bin下的setDomainEnv.cmd文件:修改前:if "%JAVA_VENDOR%"=="Sun" (set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx512mset WLS_MEM_ARGS_32BIT=-Xms256m -Xmx512m) else (set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx512mset WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m)set MEM_PERM_SIZE_32BIT=-XX:PermSize=48mset MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=128m修改后:if "%JAVA_VENDOR%"=="Sun" (set WLS_MEM_ARGS_64BIT=-Xms512m –Xmx1024mset WLS_MEM_ARGS_32BIT=-Xms512m –Xmx1024m) else (set WLS_MEM_ARGS_64BIT=-Xms1024m –Xmx1024mset WLS_MEM_ARGS_32BIT=-Xms1024m –Xmx1024m)set MEM_PERM_SIZE_32BIT=-XX:PermSize=128mset MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=256m说明:红色字体为修改的内容,具体修改值根据实际物理内存确定∙-Xmx3550m:设置JVM最大堆内存为3550M。
[计算机软件及应用]WebLogic配置集群
![[计算机软件及应用]WebLogic配置集群](https://img.taocdn.com/s3/m/79bda19c0242a8956bece4f3.png)
• 为WebLogic配置SSL • 配置WebLogic服务器的SSL侦听端口 • 在http.conf中设置WebLogicPort指向WebLogic SSL侦听端口 • 设置http.conf中的SecureProxy参数为ON • 在Apache上安装可信任证书权威CA文件。你可以使用来自
• 管理服务器 • 受管服务器 • 多播位置
• 在生产环境,使用DNS名称,而不使用IP地址:
• 防火墙会引起IP地址转换错误
• 每个WebLogic服务器资源应该有唯一的名称 • 除了集群通讯外,多播地址不应用于其他任何方面
h
集群地址
• 集群地址用来在实体和会话Bean中构建请求URL的主 机名部分
• 这个Servlet代理将请求转发给集群中其他服务器 • 它应该运行在独立的、非集群导创建。
• 你也可以手工设置带HTTPClusterServlet的Web应用,部署到 受管服务器上
h
使用配置向导创建WebLogic代理服务器
h
手工创建WebLogic代理服务器
h
集群架构的安全选项
• 对于代理架构,你可以:
• 在不信任客户端和Web服务器层之间有一个防火墙 • 在代理层和集群之间有一个防火墙
• 当使用负载均衡器时,在负载均衡器提供的安全特性 基础上,你可能想在均衡器和不信任客户端之间放置 一个防火墙。
• 当使用单个数据库同时支持内部和外部数据时:
• 在数据库服务器前放置额外的防火墙
• 如果你在使用支持的第三方Web服务器,而不是 WebLogic Web服务器,你需要设置代理插件
• 下面是支持的第三方Web服务器:
Weblogic安装及配置--windows环境

一、安装Weblogic在安装Weblogic11g之前先要安装jdk1.6及以上版本;安装Weblogic:1.在命令提示符程序下,用cd/d 命令切换到Weblogic11g安装软件的目录下:2.使用java –jar 命令执行Weblogic11g的.jar安装软件(java -jar 命令是执行安装.jar格式的安装软件,这里Weblogic11g安装软件就是.jar格式的软件包: wls1036_generic.jar);等待1分钟左右后就会显示软件安装界面:点击“浏览…”按钮选择中间件主目录后(也就是Weblogic的安装目录),再点下一步:点“是”,出现如下界面:选择勾掉“我希望通过 My Oracle Support 接收安全更新”项:点击“Yes”,再点击“下一步”:点击“Yes”:同样点“Yes”;在如下界面:选择“我希望不接收配置中……”项,点“继续”:界面如下:选择定制,点击下一步:选择如上图所示的选项,点击下一步;出现如下图界面:点击“浏览…”选择JDK的安装目录,再点击下一步:(若本地JDK框内已经有选择了的JDK目录就不用再选择目录);再点下一步,在如下界面里,选择“否”:再点下一步:点击下一步:再点击下一步,程序就自动开始安装Weblogic软件了:点击完成。
二、创建域及主服务:1.执行E:\Weblogic\Middleware\wlserver_10.3\common\bin目录下的config.cmd文件,出现如下创建及配置域的界面,选择“创建新的Weblogic域”:点击下一步:点击下一步:入所要创建的域名,选择域的文件位置,点击下一步:在如上界面,配置输入域管理员的用户及密码(该处配置的域管理员用户及密码用于后面启动主服务及登录创建的Weblogic域平台的),设置好后,再点击下一步:如下图:选择“生成模式”,在右边“JDK 选择”框内选择可用 JDK,点击下一步:在如上界面,选择“管理服务器”选项,点击下一步:在如上配置管理服务器界面设置主服务的名称、监听端口(Listen port),监听地址(Listen address)保持默认不用修改;监听端口默认为 7001,可以设置成其他没有用到的空闲端口;点击下一步:点击创建:如上图创建域完成后,点击完成。
weblogic的集群与配置图文方法

weblogic的集群与配置图⽂⽅法⼀、Weblogic的集群还记得我们在第五天教程中讲到的关于Tomcat的集群吗?两个tomcat做node即tomcat1, tomcat2,使⽤Apache HttpServer做请求派发。
现在看看WebLogic的集群吧,其实也差不多。
区别在于: 如果我们要布署我们的Web应⽤,需要分别⼿⼯往每个Tomcat的webapp⽬录⾥拷贝⽂件。
Weblogic的集群必须设⽴⼀个总控端,可从上图中看出,然后这个总控端我们把它称为AdminServer,然后在其下可以挂weblogic的集群的node,这个node不是物理上不同的两个weblogic,⽽是不同的domain,我们假设domain1, domain2为两个weblogic的集群的节点。
如果我们要布署我们的Web应⽤,只需要在总控端布署⼀次,然后挂在这个总控端下的节点将会⾃动将我们的web应⽤发布到每⼀个节点。
因此,要实现weblogic的集群必须:安装Weblogic创建⼀个AdminServer的domain在AdminServer上建⽴集群总控端分别创建每⼀个要加⼊此集群总控端的node,也是⼀个个的domain⼆、创建Weblogic集群前的规划根据第⼀节中的内容,我们将我们⽤于实验的Weblogic规划成3个domain,每个domain都包含有下列的必不可少的属性:AdminConsole(总控端) 逻辑名 物理名(domain的系统路径) 端⼝号 计器名(IP) 登录信息(username/password)Cluster node1(集群节点1) 逻辑名 物理名(domain的系统路径) 端⼝号 计器名(IP) 登录信息(username/password)Cluster node2(集群节点2) 逻辑名 物理名(domain的系统路径) 端⼝号 计器名(IP) 登录信息(username/password) 我们⽤表格列出我们将要创建的集群中总控端与每个节点的集息:物理名逻辑名端⼝号主机名(IP)登录信息\bea\user_projects\domains\adminserverAdminServer7001localhost weblogic/password_1\bea\user_projects\domains\server1mycluster17011localhost weblogic/password_1bea\user_projects\domains\server2mycluster27012localhost weblogic/password_1 规划好了,就可以开始来创建我们的集群了。
weblogic多机集群配置文档

Weblogic10.0多机集群配置说明一配置说明:配置weblogic双机集群,主机1上运行管理服务器,受管理服务器1和代理服务器,主机2上运行受管理服务器2。
二目标:实现所有http请求全部发到主机1上的代理服务器,统一由代理服务分发给两个主机上的受管理服务器来处理业务,并且实现会话复制,即一台机器上的受管理服务器宕掉,所有的请求都转到另一台受管理服务器上,并且会话也会转移到这个服务器。
三配置图解:第一步,首先在主机1上运行weblogic的配置向导。
(01)选择“新建weblogic域”点击“下一步。
(图01)选择“生成一个自动配置的域以支持下列BEA产品“,点击”下一步“。
(图02)(03)填入用户名和密码,请记录填写的信息不要丢失,后面登陆控制台的时候需要用到这些信息,点击“下一步“。
(图03)(04)首先选择左侧的“生产模式“,然后选择右侧的”sun jdk“,点击”下一步“。
(图04)选择下方的“是“,点击”下一步“。
(图05)(06)填写管理服务器的相关信息( 我的配置:a 172.16.15.131 8001),点击“下一步“。
(图06)(07)填写各个受管理服务器的详细信息,这里要注意的是m2的监听地址填的是主机2的ip地址,因为这个服务实际是运行在主机2上,下面是我的配置:m1 172.16.15.131 8002m2 172.16.15.132 8003p 172.16.15.131 8008点击“下一步“。
(图07)(08)填入集群相关信息监听地址、端口可以默认,建议修改成唯一的不要是被占用了的,点击“下一步“。
(图08)(09)将左边的服务器m1和m2添加到右边的c集群下,点击“下一步“。
(图09)(10)勾上“为集群创建http代理c,点击“下一步”。
(图10)填入域的名称和位置,配置是:域名:web_c,域位置:默认,点击,“创建”。
到此主机1的配置向导的工作已完成。
weblogic集群配置方法

weblogic集群配置方法案例所属系统案例现象无案例平台环境AIX 5300-04-00AIX 5300-05-CSPWeblogic9.2mp2JDK1.5.0主机结构应用部署案例分析分析过程web应用部署在两台服务器上,客户没有硬件负载均衡器,但要求从唯一的ip和端口登录web应用,通过weblogic集群来实现。
案例解决方法一、在web1主机上执行config.sh脚本建立domain:elndomain11;建立管理server:AdmServer11;建立被管理server: Server11、Server12 (注意:配置被管理server 时把web2主机上的两个被管理server也配置上) 。
详细方法如下:config.shUnable to instantiate GUI, defaulting to console mode.<--------------------- BEA WebLogic Configuration Wizard --------------------->Welcome:--------Choose between creating and extending a domain. Based on your selection,the Configuration Wizard guides 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 WebLogic domain| Extend an existing WebLogic domain. Use this option to add|applications and services, or to override existing database access (JDBC) |and messaging (JMS) settings. You can also incorporate additional|functionality in your domain, for example, by including AquaLogic Service |Bus.Enter index number to select OR [Exit][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Select Domain Source:---------------------Select the source from which the domain will be created. You can create the domain by selecting from the required components or by selecting from alist of existing domain templates.->1|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 existing template. This|could be a custom created template using the Template Builder.Enter index number to select OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Application Template Selection:-------------------------------Available Templates|_____WebLogic Server (Required)xEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>1、设置管理帐号和口令<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________|1| *User name: | weblogic |2| *User password: | |3| *Confirm user password: | |4| Description: | This user is the default administrator. |Use above value or select another option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"Enter option number to select OR [Exit][Previous][Next]> 2<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers."*User password:" = []Enter new *User password: OR [Exit][Reset][Accept]> xxxxxxxx<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________|1| *User name: | weblogic |2| *User password: | ********* |3| *Confirm user password: | |4| Description: | This user is the default administrator. |Use above value or select another option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers."*Confirm user password:" = []Enter new *Confirm user password: OR [Exit][Reset][Accept]> xxxxxxxx<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is the default administrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________|1| *User name: | weblogic |2| *User password: | ********* |3| *Confirm user password: | ********* |4| Description: | This user is the default administrator. |Use above value or select another option:1 - Modify "User name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]><--------------------- BEA WebLogic Configuration Wizard --------------------->Domain Mode Configuration:--------------------------Enable Development or Production Mode for this domain.->1|Development Mode2|Production ModeEnter index number to select OR [Exit][Previous][Next]> 2<--------------------- BEA WebLogic Configuration Wizard ---------------------> Java SDK Selection:-------------------->1|IBM SDK 1.5.0 @ /usr/java5_642|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Choose Configuration Option:----------------------------*Do you want to modify any of the preconfigured settings or defaults in*your template?**To keep the default or template settings, and proceed directly to name and *create your domain, leave No selected.1|Yes->2|NoEnter index number to select OR [Exit][Previous][Next]> 12、建立管理server<--------------------- 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: | AdminServer |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another 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<--------------------- 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: | AdminServer |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Enter value for "Name" OR [Exit][Previous][Next]> AdmServer11<--------------------- 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: | AdmServer11 |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- 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: | AdmServer11 |2| Listen address: | All Local Addresses |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Enter value for "Listen address" OR [Exit][Previous][Next]> 134.32.9.61<--------------------- 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: | AdmServer11 |2| Listen address: | 134.32.9.61 |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- 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: | AdmServer11 |2| Listen address: | 134.32.9.61 |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Enter value for "Listen port" OR [Exit][Previous][Next]> 9001<--------------------- 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: | AdmServer11 |2| Listen address: | 134.32.9.61 |3| Listen port: | 9001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]>3、配置被管理server<--------------------- 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 Serveris 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 OR [Exit][Previous][Next]> Server11<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port |SSL listen port |SSL enabled | _|_________|___________________|____________|________________|____________| 1->|Server11 |All Local Addresses| 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port |SSL listen port |SSL enabled |_|_________|___________________|____________|________________|____________| 1->|Server11 |All Local Addresses| 7001 | N/A | false |Modify "Listen address" OR [Exit][Previous][Next]> 134.32.9.61<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 7001 | N/A | false |Modify "Listen port" OR [Exit][Previous][Next]> 10011<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Use above value or select another option:1 - Add2 - Modify3 - Delete4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 1<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address | Listen port | SSL listen port | SSL enabled | _|__________|________________|_____________|_________________|_____________| 1->| Server11 | 134.32.9.61 | 10011 | N/A | false |Enter name for a new OR [Exit][Previous][Next]> ProxyServer11<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listen port|SSL enabled| _|_____________|__________________|___________|_______________|___________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11|All Local Addre...| 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 2<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listen port|SSL enabled| _|_____________|__________________|___________|_______________|___________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11|All Local Addre...| 7001 | N/A | false |Modify "Listen address" OR [Exit][Previous][Next]> 134.32.9.61<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 7001 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 7001 | N/A | false |Modify "Listen port" OR [Exit][Previous][Next]> 8090<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2->|ProxyServer11 | 134.32.9.61 | 8090 | N/A | false |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL enabled"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5继续添加被管理server,最终web1主机上被管理server如下:<--------------------- 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 Serveris an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled | _|______________|_______________|____________|________________|____________| 1| Server11 | 134.32.9.61 | 10011 | N/A | false | 2| Server12 | 134.32.9.61 | 10012 | N/A | false | 3|ProxyServer11 | 134.32.9.61 | 8090 | N/A | false | 4| Server21 | 134.32.9.138 | 10021 | N/A | false | 5->| Server22 | 134.32.9.138 | 10022 | N/A | false |Use above value or select another option:1 - Add2 - Modify3 - Delete4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]>4、配置集群<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_______|___________________|________________|_________________|Enter name for a new Cluster OR [Exit][Previous][Next]> elnclu1<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7001 | |Use above value or select another option:1 - Modify "Name"2 - Modify "Multicast address"3 - Modify "Multicast port"4 - Modify "Cluster address"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 3<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7001 | |Modify "Multicast port" OR [Exit][Previous][Next]> 7777<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7777 | |Use above value or select another option:1 - Modify "Name"2 - Modify "Multicast address"3 - Modify "Multicast port"4 - Modify "Cluster address"5 - DoneEnter option number to select OR [Exit][Previous][Next]> 5<--------------------- BEA WebLogic Configuration Wizard --------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster contains multiple WebLogic Server instances that run simultaneously and worktogether to provide increased scalability and reliability. A clusterappears to be a single WebLogic Server instance to clients.| Name* | Multicast address | Multicast port | Cluster address |_|_________|___________________|________________|_________________|1->| elnclu1 | 239.192.0.0 | 7777 | |Use above value or select another option:1 - Add Cluster2 - Modify Cluster3 - Delete Cluster4 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]><--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.Cluster|_____elnclu1 [1]Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu11|Server112|Server123|ProxyServer114|Server215|Server22Use above value or select another option:1 - Select2 - Select AllEnter option number to select OR [Exit][Discard][Accept]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu11|Server112|Server123|ProxyServer114|Server215|Server22Select( Enter index numbers and/or index ranges separated by commas. For example, 1, 4-5 ) OR [Exit][Discard][Accept]> 1<--------------------- BEA WebLogic Configuration Wizard --------------------->Assign Servers to Clusters:---------------------------Assign Managed Servers to a cluster in the domain.*Select WebLogic Servers and assign them to a cluster. elnclu1->1|Server112|Server123|ProxyServer11。
weblogic10.3集群配置

1:两台机器,A:192.168.10.71,这个是主服务器。
B:192.168.10.72.这个是被管理服务器。
2:先对A主机做操作:安装weblogic10.3,然后开始」菜单\程序\Oracle WebLogic (BEAHOME 1)\WebLogic Server 10gR3\Tools\Configuration Wizard,单击启动Configuration Wizard。
在安装过程中,我取的集群名字是jiqun_domain,关键的几步是:1:我在上图中,建立了三个被管理的服务,在A机器本机上又两个,分别是manageService1和proxyService.端口也一一做了设置。
2:在接下来的步骤中(这幅图我是拷贝了以下别的文件的,所以可能会看见服务名字都不一样,做个参考而已):不要讲代理服务器,也就是proxyService加到右边去。
3:解析来这一步也很重要,选中“为群集创建Http代理”,myCluster代理服务器选择前面没有加入myCluster的ProxyServer,单击“下一步”按钮:是配置计算机。
我暂时没有配置。
差不多安装也就是这个样子了。
然后启动服务,通过浏览器打开控制台:http://192.168.10.71:7001/console注意,因为之前我的adminService采用了192.168.10.71的监听地址,所以这里不能通过http://localhost:7001/console这个地址来访问。
点击控制台的环境:可以查看服务和集群:我们可以发现,几个服务都没有启动。
如何运行起来呢?启动服务器(机器A上的Weblogic服务器)还可以通过点击集群来查看集群下目前所拥有的服务:好了,接下来1、打开命令行模式窗口,输入cd C:\BEAWSL\user_projects\domains\TestDomain\bin,切换目录2、输入startManagedWebLogic.cmd ManagedServer_1,执行该命令(后面的ManagedServer_1需要替换为我们自己对应的服务名),出现如下日志,管理服务完成启动。
WebLogic 10.3 安装、配置与管理手册

WebLogic 10.3 安装、配置与管理手册第一章WebLogic 10.3 for Win32§1.1 安装准备? 下载WebLogic10.3 for x86 Win32安装文件;? 安装Windows XP Sp2或Windows 2003 Server;? 检查操作系统的磁盘空间,确保空闲空间在2G以上。
§1.2 安装过程§1.2.1 启动安装运行WebLogic10.3_win32.exe,启动WebLogic 10.3的安装过程。
§1.2.2 welcome§1.2.3 选择Weblogic安装目录建议安装在非系统盘C:,且目录名不要包含汉字与空格。
§1.2.4 选择Custom类型§1.2.5 选择要安装的组件类型安装除Workshop组件和例子程序外的组件。
§1.2.6 选择要安装的JDK两者均安装。
§1.2.7 选择产品安装目录建议安装在非系统盘C:,且目录名不要包含汉字与空格。
§1.2.8 安装节点管理服务要安装节点管理服务,并修改默认的端口5556为7878。
§1.2.9 选择快捷菜单模式§1.2.10 安装总结§1.2.11 安装过程§1.2.12 安装结束取消执行Run Quickstart。
§1.3 创建管理服务器的域AdminServer Name: AdminServerListen Address: 192.168.100.1Listen Port: 8080SSL Listen Port: 8081SSL enabled: trueDomain Name: weblogic§1.3.1 运行Configuration Wizard§1.3.2 选择创建新域§1.3.3 选择域源§1.3.4 配置管理员及密码§1.3.5 选产品模式+JRockitJDK§1.3.6 选择要定制环境与服务设置§1.3.7 暂不配置安全存储§1.3.8 配置管理服务器的端口§1.3.9 暂不添加受管的服务器§1.3.10 暂不添加受管的主机§1.3.11 Review配置§1.3.12 指定域名§1.3.13 创建域§1.4 创建受管服务器的域创建受管服务器的Domain有两种方法:一、如管理服务器和受管服务器的操作系统相同,则可以将管理服务器创建的Domain复制到受管服务器。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Weblogic10.0多机集群配置说明
一配置说明:
配置weblogic双机集群,主机1上运行管理服务器,受管理服务器1和代理服务器,主机2上运行受管理服务器2。
二目标:
实现所有http请求全部发到主机1上的代理服务器,统一由代理服务分发给两个主机上的受管理服务器来处理业务,并且实现会话复制,即一台机器上的受管理服务器宕掉,所有的请求都转到另一台受管理服务器上,并且会话也会转移
三配置图解:
第一步,
首先在主机1上运行weblogic的配置向导。
(01)
选择“新建weblogic域”点击“下一步。
(图01)
(02)
选择“生成一个自动配置的域以支持下列BEA产品“,点击”下一步“。
(图02)
(03)
填入用户名和密码,请记录填写的信息不要丢失,后面登陆控制台的时候需要用到这些信息,点击“下一步“。
(图03)
(04)
首先选择左侧的“生产模式“,然后选择右侧的”sun jdk“,点击”下一步“。
(图04)
(05)
选择下方的“是“,点击”下一步“。
(图05)
(06)
填写管理服务器的相关信息( 我的配置:主机1 192.168.1.103),点击“下一步“。
(图06)
(07)
填写各个受管理服务器的详细信息,这里要注意的是new_ManagedServer_2的监听地址填的是主机2的ip地址,因为这个服务实际是运行在主机2上,下面是我的配置:
new_ManagedServer_1 192.168.1.103 7002
new_ManagedServer_2 192.168.1.101 7003
proxy_server 192.168.1.103 80
点击“下一步“。
(图07)
(08)
填入集群相关信息监听地址、端口可以默认,建议修改成唯一的不要是被占用了的,点击“下一步“。
(图08)
(09)
将左边的服务器主机1和主机2的受管服务器添加到右边的new_Cluster_1集群下,注意代理服务器proxy_server,不能添加到集群中。
点击“下一步“。
(图09)
(10)
勾上“为集群创建http代理服务器proxy_server,点击“下一步”。
(图10)
最后一步点击创建,即可完成主机1的管理服务器和受管服务器配置
第二步:接下来运行主机2的weblogic配置向导点击下一步:
点击下一步,“指定域名和位置”,如果受管服务器分布在不同的服务器上,请保持域名一致,方便以后的web应用部署:
(001)
点击下一步,填入跟主机1同样的用户名和密码(强烈建议)。
(图001)
(图002)
点击下一步,这里也选择“开发模式”和“sun jdk”(图003)
(图003)
重要:
主机2的管理服务器配置注意这里的配置要和主机1的管理服务器的配置一致即名称、监听地址、监听端口都要一致。
我的配置: AdminServer 192.168.1.103 7001(图004)
(图004)
点击下一步:
配置主机2上的受管理服务器信息,注意,这里也要和主机1上这个节点的配置信息一致。
我的配置:new_ManagedServer_2 192.168.1.101 7003 一路下一到结束。
(主机2上的集群和计算机都不需要配置)
第三步:完成weblogic集群必须的配置
1.创建weblogic节点node服务
主机1和主机2分别定位到weblogic的如下目录:
D:\oracle\Middleware\wlserver_10.3\server\bin,找到startNodeManager.cmd运行,运行完之后,手动启动node服务,如下:
2.创建服务器启动批处理文件
1)定位到主机1的域目录下的bin目录
(例如我的是D:\oracle\Middleware\user_projects\domains\base_domain_05\bin),分别创建managedServer1.bat和proxy_server.bat
两个文件内容分别是startManagedWebLogic.cmd new_ManagedServer_1 和startManagedWebLogic.cmd Proxy_server
2)定位到主机2的域目录下的bin目录
(例如我的是D:\oracle\Middleware\user_projects\domains\base_domain_05\bin),创建managedServer2.bat 文件内容startManagedWebLogic.cmd new_ManagedServer_2
3)开启服务器
运行主机1的管理服务器startWebLogic.cmd(在bin的上一级目录中,或者在windows的开启菜单下也能找到启动weblogic的图标),受管服务managedServer1.bat和代理服务器proxy_server.bat,运行主机2的受管服务器managedServer2.bat.
2.如何让weblogic的管理服务器和受管服务器,在生产模式下启动不需要输入
用户名和密码(每次输入比较繁琐)
定位到管理服务器的server目录下(例如我的目录为D:\oracle\Middleware\user_projects\domains\base_domain_05\servers\AdminServer),新增一个security文件夹,在security文件夹中新增一个boot.properties,
boot.properties中填写内如如下:
说明:会不会担心服务器上密码配置成明文很不安全啊,放心吧,weblogic第一次启动的时候,会对boot.properties进行加密处理的。
其他受管服务器以此类推都是这么配置的。
到此配置完成,接下来就可以部署web应用了,如果有需要请参见我的另一个文档:《weblogic10g通过控制台部署web应用(部署至集群)》。