Weblogic 10.3集群配置及session共享

合集下载

[计算机软件及应用]WebLogic配置集群

[计算机软件及应用]WebLogic配置集群
• 在Apache与WebLogic之间支持SSL:
• 为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服务器:

Linux环境下搭建WebLogic-10.3.6集群服务十步曲

Linux环境下搭建WebLogic-10.3.6集群服务十步曲

Linux环境下搭建WebLogic-10.3.6集群服务十步曲Linux环境下搭建WebLogic 10.3.6集群服务十步曲(console模式)版本说明版本日期作者说明V1.0 2017-03-26 王林初稿财概要描述WebLowls1036_generic.jargicJDK jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.binDataB11gaseOS Linux Redhat 6.5 64位1.安装前准备篇 (11)4.1.3.设置jrockit-jdk安装目录164.1.4.确认安装174.1.5.验证是否已安装成功194.2.安装Weblogic194.2.1.执行安装文件194.2.2.设置中间件安装主目录194.2.3.设置是否接收安全更新(不接收) (20)4.2.4.选择安装内容(只安装WeblogicServer) (21)4.2.5.选择JDK274.2.6.确认WebLogic安装目录284.2.7.验证是否已安装成功335.节点1配置篇 (36)5.1.新建应用domain域365.1.1.执行weblogic配置向导文件365.1.2.选择新建或者扩展域(选择新建) (36)5.1.3.选择域控件或者模版(选择控件) (37)5.1.4.选择应用模版(默认选择BasicWebLogic Server Domain) (39)5.1.5.编辑域名称信息405.1.6.配置管理员用户及密码415.1.7.配置域模式(选择2生产模式)435.1.8.选择JDK(选择JRockit JDK)445.1.9.配置管理服务器445.1.10.创建域505.1.11.查看域创建日志,检查域是否创建成功 (51)5.1.12.启动域,验证管理服务器是否配置成功 (54)5.1.13.IE登录域控制台575.2.环境参数配置575.2.1.Java.security安全策略文件配置 (57)5.2.2.域内存参数配置585.2.3.域JAVA_OPTIONS参数配置615.3.管理服务器(AdminServer)配置625.3.1.密钥文件配置635.3.2.启动脚本配置635.4.计算机(Machine)配置645.5.应用集群(Cluster)配置665.6.节点管理器(nodemanager)配置675.6.1.配置startNodeManager.sh启动脚本 (67)5.6.2.设置管理服务器主机名验证为“无” (69)5.7.被管理服务器(ManagedServer)配置695.7.1.服务器配置695.7.2.密钥文件配置745.7.3.启动脚本配置756.节点2安装配置篇 (76)6.1.拷贝节点1的jrockit jdk安装及配置766.2.拷贝节点1的weblogic安装及配置766.3.克隆节点1的被管理服务器配置766.4.移除节点2上的管理服务器启动脚本786.5.移除节点2上的服务启动日志信息796.6.修改节点2被管理服务器启动脚本796.7.配置节点2被管理服务器密钥文件807.部署篇 (81)7.1.数据源配置817.1.1.新建数据源817.1.2.数据源参数调优857.2.应用部署877.2.1.上传应用程序文件877.2.2.部署应用878.服务启动/查看状态/停止篇 (92)8.1.启动服务928.1.1.启动管理服务器928.1.2.启动节点服务器958.1.3.启动被管理服务器978.2.查看/停止服务1008.2.1.查看/停止管理服务器1008.2.2.查看/停止节点服务器1018.2.3.查看/停止被管理服务器1029.安全防护篇 (105)9.1.Java反序列化安全漏洞修复10510.FAQ篇 (105)10.1.在weblogic控制台启动Server1时,报<BEA-000110> <Multicast socket receive error (105)1.安装前准备篇1.1.主机资源规划主机IP 主机名称管理服务器及端口被管理服务器及端口10.140.3 0.51 po9kcfap901AdminServer/7001Server1/808010.140.3 0.52 po9kcfap902Server2/8080双主机,配置为集群服务,其中管理服务器配置在第一个节点上,节点管理器使用默认的名称及端口。

weblogic的集群与配置图文方法

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 10.3.6.0 集群搭建

Weblogic 10.3.6.0 集群搭建

Weblogic 集群搭建Oracle的Weblogic分开发者版本和生产版本,有32位和64位。

一般生产版本的weblogic是64位的,安装文件是一个大小为1G多的jar包。

去oracle官网上下载64版weblogic。

这里使用的版本是weblogic11g,版本号是10.3.6,文件名为“wls1036_generic.jar”。

安装weblogic前要确认已安装好jdk(如果安装的是64位weblogic则需要64位版本的jdk)。

目前,weblogic可免费使用,需要oracle的weblogic服务时才需要向Oracle付费买服务,即产品免费服务收费。

一、安装weblogic(windows和Linux操作步骤相同)1、在命令行,进入安装文件wls1036_generic.jar所在文件夹然后输入命令:Java -jar wls1036_generic.jar点击回车后程序会启动weblogic安装文件的图形安装界面。

按下来的安装和在windows中安装普通文件一样了。

2、点击“下一步”,到下图界面,然后输入weblogic的安装目录。

(路径中最好不要有空格)3、点击“下一步”。

到下图界面,由于我们没有购买oracle的服务所以去掉下图中的勾。

(目前weblogic可免费使用,需要oracle技术支持的话才需要付费)4、点击“下一步”,到下图界面,会因为我们没有填写上图的的支持信息而弹出两个警告框,直接“YES”通过即可。

进入下图,勾选下面的框(不需要使用验证)5、然后点击“继续”。

到下图界面,选择“典型”和“定制”都可以,根据自己喜好设置6、选择后点击“下一步”,进入下图界面,如果没有显示jdk信息,则手动点击“浏览”选择自己机器上安装的jdk,一般默认显示出来的就已经是自己机口上安装的了(貌似是根据环境变量里的JAVA_HOME获取的)7、点击“下一步”进入下图界面,不用修改,直接点击“下一步”即可8、然后会显示出我们准备安装的组件信息,直接点击“下一步”9、然后就开始安装了10、安装完成了,这里有勾选“运行Quickstart”表示安装完成后打开域创建和配置界面。

WebLogic 10.3 安装、配置与管理手册

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复制到受管服务器。

Weblogic10.3安装和配置

Weblogic10.3安装和配置

Weblogic10.3安装和配置一,安装weblogic1.运行安装程序oepe11_wls1031(weblogic).exe,出现欢迎界面,单击【Next】按钮继续安装图1.1 Weblogic安装初始化界面图1.2Weblogic欢迎界面2.建立BEA Home目录,默认选择【Create a new BEA Home】,在【BEA Home Directory】输入框中输入要安装的目录,默认是C:\bea(本实施是在D://oracle/middleware)。

单击【Next】按钮继续图2.1BEA Home目录3.选择安装类型,默认是【Complete】,单击【Next】按钮继续图3.1选择安装类型4.设置安装Weblogic Server产品的目录,默认是BEA主目录的子目录wlserver_10.3和workshop_10.3,单击【Next】按钮继续图4.1设置安装Weblogic Server产品的目录5.选择快捷方式的位置,单击【Next】按钮继续,显示将要安装的产品目录图5.1选择快捷方式的位置图5.2显示将要安装的产品目录6.单击【Next】按钮继续,开始安装相应的文件图6.1开始安装界面图6.2安装成功界面二,配置server和域1.安装成功后,需要创建域,选择【开始】→【所有程序】→【Oracle Weblogic】→【Weblogic Server 10gR3】→【Tools】选择【Configuration Wizard】,进入配置向导图1.1 配置向导2.创建Weblogic域, 单击【Next】按钮继续图2.1 创建Weblogic域3.选择Domain Source, 单击【Next】按钮继续图3.1 选择Domain Source4.设置管理员用户名和密码(本实施是weblogic/tyjmyb2008),单击【Next】按钮继续图4.1 设置管理员用户名和密码5.配置服务器启动模式和JDK,单击【Next】按钮继续图5.1 配置服务器启动模式和JDK6.定制环境和服务设置,单击【Next】按钮继续图6.1 确认设置图6.2确认设置7.为创建的域配置服务器,每个域对应一个服务器(本实施name:jmyb,listen address:129.1.9.91,listen port:6000),单击【Next】按钮继续图7.1 配置服务器8确认域的配置信息,单击【Next】按钮继续图8.1 验证域的配置信息9.命名Weblogic域(本实施 Domain name:tyyb),单击【Next】按钮继续图9.1 命名Weblogic域图9.2 Weblogic域创建成功10.选择【开始】→【所有程序】→【Oracle Weblogic】→【User Projects】→【base domain】启动【Start Admin Server for Weblogic Server Domain】,启动Weblogic Server,在浏览器的地址栏中输入http://localhost:6000/console,启动Weblogic Server的控制台,出现图10.1所示的界面,输入用户名和密码进入控制台图10.1 登录Weblogic Server域三,创建配置DATAsource1.在导航树中,tyyb -> Services -> JDBC -> Data Sources,点击new,新建一个datasource图1.1创建一个新的datasource2.设置datasource名数据库类型以及驱动(其中JNDIname 是应用中配置文件JDBC_factory的值,本次实施datasourcename=jmybjs,JNDI name=jmyb,数据库以及驱动类型如图所示),单击【Next】按钮继续图2.1配置datasource3.Transaction Option 按默认配置,单击【Next】按钮继续图3.1 配置transaction option4.配置连接池(本次实施参看下图),单击【Next】按钮继续图4.1 配置连接池5.测试连接池(Test Configuration) ,单击【Next】按钮继续图5.1 测试连接池6.选择targetserver(本次实施是jmyb),单击【Finish】按钮完成配置图6.1 选择target四,安装配置deployment 1.在tyyb->deployment,选择install图1.1 配置deployment2.选择WEB应用打包的WAR文件(此WAR名不能与datasourcename重名;该WAR文件被发布后会在*/domain/ttyb/servers/jmyb/stage下建立与WAR同名文件夹并在此文件夹里copy 一个*.WAR文件,weblogic会直接调用此文件来连接应用),单击【Next】按钮继续图2.1 选择WAR文件路径以及WAR文件3.Targeting style选择 install this deployment as an application,单击【Next】按钮继续图3.1 选择targeting style4.选择copy this application onto every target for me,其它默认配置,单击【Next】按钮继续图4.1 optional setting界面5.选择 no I will review the configuration later,单击【Finish】按钮完成配置图5.1 Review界面。

WebLogic10.3安装及配置指南_IT168文库

WebLogic10.3安装及配置指南_IT168文库

WebLogic10.3安装及配置指南目录:一.WebLogic主程序的安装过程一.WebLogic主程序的安装过程1.如图1.1所示,找到WebLogic程序所在位置;图1.12.如图1.2所示,双击主程序图标,启动安装WebLogic的准备界面;图1.23.如图1.3所示,开始WebLogic的安装,点击“Next”按钮进行下一步;图1.34.如图1.4所示,选择weblogic10.3的安装路径,指定“BEA Home”路径,如果已有“BEA Home”目录则可以选择按已有的路径安装,如果没有则默认选择“Create a new BEA Home”,通过“BEA Home Directory”修改“BEA Home”路径,完成后点“Next”进行下一步;图1.45.如图1.5所示,选择安装类型,“Complete”为完全安装,“Custom”为自定义安装,自定义安装下可以选择要安装的项目。

在这里,我们选择“Complete”完全安装,完成后点“Next”进行下一步;图1.56.如图1.6所示,指定安装路径,完成后点“Next”进行下一步;图1.67.如图1.7所示,默认选择“All Users”Start Menu folder,点“Next”进行下一步;图1.78.如图1.8所示,,点“Next”进行下一步;图1.89.如图1.9所示,进入安装进度界面(大概等候10分钟左右);图1.910.如图1.10所示,主程序安装完成界面,点击“Done”完成主程序安装,默认“Run Quickstart”为选中,即点击“Done”后启动“Quickstart”进行WebLogic的配置;图1.10。

Weblogic10.3集群配置及session共享

Weblogic10.3集群配置及session共享

Weblogic10.3集群配置及session共享Weblogic 10.3集群配置手册(版本号:V1.0)目录1.预备知识 (2)2.本文环境 (2)3.配置WebLogic Server集群 (2)1.预备知识什么是Domain和ServerDomainDomain是WebLogic Server实例的基本管理单元。

所谓Domain就是,由配置为Administrator Server的WebLogic Server 实例管理的逻辑单元,这个单元是有所有相关资源的集合。

ServerServer是一个相对独立的,为实现某些特定功能而结合在一起的单元。

Domain and Server的关系一个Domain 可以包含一个或多个WebLogic Server实例,甚至是Server集群。

一个Domain中有一个且只能有一个Server 担任管理Server的功能,其它的Server具体实现一个特定的逻辑功能。

2.本文环境平台:RHL 5.0软件:WebLogic Server 10.3配置WebLogic Server集群WebLogic集群的体系结构单层混合型的集群架构(Cluster)这种架构将所有的Web应用以及相关的服务应用全部置于集群中的单一WLS实例中,这种架构的优势在于:易于管理灵活的负载平衡机制更强的安全控制多层结构的集群架构(Cluster)这种架构使用两个WLS集群,一个放置表静态内容和集群Servlet,另一个放置集群EJB。

一般应用于下面这些情况:在负载平衡机制需要调用集群EJB中的方法时;在提供内容与提供对象的服务之间需要更大的机动性时;在需要更高的系统稳定性时;配置集群应用的必要条件集群中的所有Server必须位于同一网段,并且必须是IP广播(UDP)可到达的集群中的所有Server必须使用相同的版本,包括Service Pack集群中的Server必须使用永久的静态IP地址。

Linux下WebLogic集群的部署完整版

Linux下WebLogic集群的部署完整版

1.W eblogic安装这里以安装Weblogic10.3.1.0中文版为例,首先确定服务器的Ip:在Linux系统中打开终端输入:ifconfig 获取IP,已知IP可以跳过此步骤,如下图:打开Putty.exe,ip地址输入200.299.203.176 端口22 连接类型 SSH,如下图:点击打开输入用户名root 密码:1234htsd 温馨提示密码在输入时不显示,如下图然后用SSH工具将文件上传到Linux系统中,如下图进入之后点击New File Transfer Window按钮,如下图:在本地找到oepe11_ccjk_wls1031_linux32.bin文件右键将该文件上传到Linux系统root目录下,如图:回到putty 输入:cd /root找到oepe11_ccjk_wls1031_linux32.bin并赋予可执行权限:chmod u+x oepe11_ccjk_wls1031_linux32.bin,如下图:当前目录下执行./oepe11_ccjk_wls1031_linux32.bin 自解压过程开始,进度过100%后。

出现欢迎画面,如下图:第一步:输入next第二步:输入安装目录,选择中间件主目录:输入next,如下图:第三步:注册安全更新,需要把接收安全更新修改为No:a)输入3,如下图b)提示输入新值输入No,如下图c)提示是否希望绕过配置管理器的启动过程并且不接收配置中存在严重安全问题的通知输入Yes,如下图d)输入next ,如下图第四步:选择安装类型输入1典型安装,如下图第五步:选择产品安装目录默认输入next,如下图第六步开始安装WebLogic,JDK并创建默认domain 输入next,如下图第七步:安装完成输入next 退出安装1.1Weblogic主服务器域的创建1.进入刚刚创建的WebLogic安装目录如:/root/Oracle/Middleware/wlserver_10.3/common/bin 并执行./config.sh,如下图:2.欢迎界面,创建新的域输入1,如下图3.选择选择域源输入1,如下图:4.选择默认模版输入next,如下图:5.编辑域信息输入域的名字MyCluster_Domain,域名按照实际情况输入,如下图:6.输入next,如下图7.选择目标域目录默认输入next,如下图:8.配置管理员用户名和密码:根据提示分别选择1,2,3更改用户名和密码,密码至少是8位且包含字母和数字此处用户名设置为weblogic密码设置为1234htsd,1用户名:weblogic2密码:1234htsd3确认密码:1234htsd用户名密码可以自定义,如下图:9.选择生产模式输入2,如下图10.JDK选择第二个, 如下图11.择高级配置:分别输入1 2 如下图12.配置管理服务器:选择2配置地址:200.200.203.173 端口号为7001如下图13.配置受管服务器:Cluster_ManagedServer_1地址200.200.203.173 端口:7003Cluster_ManagedServer_2地址172.16.101.129 端口:7004Proxy_Server 地址200.200.203.173 端口:8080 根据实际情况设定如下图14.配置群集:Name:My_Cluster_1 消息传递模式:multicast 地址:239.192.0.1 端口7777集群地址:200.200.203.173:7003,172.16.101.129:7004,此处为所有节点的地址和端口如下图15.向域中的群集分配受管服务器,输入1 如下图16.向域中的群集分配受管服务器,输入1 如下图17.此处选择所有节点服务输入1,2 如下图18.确认并接受选择输入:Accept 如下图19.确认分配服务器:输入next 如下图20.创建HTTP代理输入1 如下图21.添加HTTP代理:输入Add 如下图:22.选择集群输入1 如下图:23.选择受管服务器, 输入1 如下图:24.回到添加或删除HTTP代理界面,输入next,如下图25.配置计算机:计算机名My_Machine_1 200.200.203.173 5556My_Machine_2 172.16.101.129 5557如下图26.无需配置Unix计算机. 输入next向计算机分配服务器:输入1.1 如图27.输入要选择的选项号: 输入1 如下图28.选择服务输入1,2,4 如下图29.接受选择输入Accept 如下图30.向My_Machine分配服务,输入1.2 如下图31.选择服务:输入1如下图32.分配服务器选择输入1 如下图33.接受分配输入Accept 如下图34.分配服务器完毕,输入next 如下图35.开始创建域…提示,至此weblogic域创建完成。

WebLogic_10G相关配置

WebLogic_10G相关配置

AIX平台下WebLogic 10G 群集配置描述一、新建域:以bea用登录,weblogic安装路径为: /bea/wlserver_10.3/common/bin执行:./config.sh 运行配置脚本,创建域,如下图:选项第一项,下一步输入密码,至少8位,下一步,选择产品模式,JDK,下一步;选择“YES”,下一步,不用选,再下一步,输入:IP地址,端口号,默认为7001,不选SSL 项;下一步;新增两个服务实例,一个代理实例,下图,Listen address 地址根据实际填写,可以是本机IP或其它,端口号自定,不重复就行,输入完下一步;输入群集Cluster名称及多播地址,如下图:Cluster_ams;把新建的两个管理实例加入Cluster_ams群集,如下图;创建HTTP代理,选择新建功的ProxyServer,实例,下一步;不选,直接下一步;下一步;输入Domain Name 名称,如domain_ams,再下一步点击“Create”,生成域成功。

二、启动WebLogic 10G进入目录:/bea/user_projects/domains/domain_ams/bin (其中“domain_ams”是你新建的域的名称)1、启动管理实例:nohup ./startWebLogic.sh &2、启动被管实例1:nohup ./startManagedWebLogic.sh ManagedServer_1 http://10.154.61.140:7001 &3、启动被管实例2:nohup ./startManagedWebLogic.sh ManagedServer_2 http://10.154.61.140:7001 &4、启动代理实例1:nohup ./startManagedWebLogic.sh ProxyServer http://10.154.61.140:7001 &其中,startManagedWebLogic.sh是启动脚本,ManagedServer_1,ManagedServer-2,ProxyServer 表示实例名,http://10.154.61.xxxx:7001是管理的URL及端口。

Weblogic集群配置

Weblogic集群配置

Weblogic集群配置(原创)博客分类:Weblogic系统环境主机结构集群信息创建集群在主机rac1执行config.sh$ ./config.sh -mode=console<------------------- 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]> n<------------------- 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 a list 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 anexisting template. This|could be a custom created template using the Template Builder.Enter index number to select OR [Exit][Previous][Next]> n<------------------- BEA WebLogic Configuration Wizard------------------->Application Template Selection:-------------------------------Available Templates|_____WebLogic Server (Required)x|_____Workshop for WebLogic Platform [2]|_____Workshop for WebLogic 10.2 [3]Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> n设置用户名、密码<------------------- 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| *Username: | weblogic|2| *Userpassword: ||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]> 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| *Username: | weblogic|2| *Userpassword: ||3| *Confirm user password:||4| Description: | This user is the default administrator. |Enter value for "User name" OR [Exit][Previous][Next]> web<------------------- 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| *Username: | web|2| *Userpassword: ||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]> 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]><------------------- 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| *Username: | web|2| *Userpassword: | ************|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]><------------------- 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| *Username: | web|2| *Userpassword: | ************|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]> n选择生产环境和JDK<------------------- 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|JRockit SDK 1.5.0_15 @ /bea/jrockit_150_152|Sun SDK 1.5.0_15 @ /bea/jdk150_153|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> n配置管理服务器主机信息<------------------- 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]> 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 |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]> Admin1<------------------- 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: | Admin1|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: | Admin1|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]>192.168.0.111<------------------- 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: | Admin1 |2| Listen address: | 192.168.0.111 |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: | Admin1 |2| Listen address: | 192.168.0.111 |3| Listen port: | 7001 |4| SSL listen port: | N/A |5| SSL enabled: | false |Enter value for "Listen port" OR [Exit][Previous][Next]> 7011<------------------- BEA WebLogic Configuration Wizard------------------->Configure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hoststhe Administration Console which is used to perform administrative tasks.| Name | Value | _|__________________|_______________|1| *Name: | Admin1 |2| Listen address: | 192.168.0.111 |3| Listen port: | 7011 |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]> n配置受管理服务器主机信息<------------------- 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| _|_______|________________|_____________|_________________|____ _________|<------------------- BEA WebLogic Configuration Wizard------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typicalproduction 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 listenport|SSL enabled|_|________|___________________|___________|_______________|_____ ______|1->|Server1 |All LocalAddresses| 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listenport|SSL enabled|_|________|___________________|___________|_______________|_____ ______|1->|Server1 |All LocalAddresses| 7001 | N/A | false |Modify "Listen address" OR [Exit][Previous][Next]> 192.168.0.111<------------------- 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 |_|________|_______________|____________|________________|_______ _____|1->|Server1 | 192.168.0.111| 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled |_|________|_______________|____________|________________|_______ _____|1->|Server1 | 192.168.0.111| 7001 | N/A | false |Modify "Listen port" OR [Exit][Previous][Next]> 7012<------------------- 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 |_|________|_______________|____________|________________|_______ _____|1->|Server1 | 192.168.0.111| 7012 | 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled |_|________|_______________|____________|________________|_______ _____|1->|Server1 | 192.168.0.111| 7012 | 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled |_|________|_______________|____________|________________|_______ _____|1->|Server1 | 192.168.0.111| 7012 | N/A | false |Enter name for a new OR [Exit][Previous][Next]> Proxy1<------------------- 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 listenport|SSL enabled|_|________|___________________|___________|_______________|_____ ______|1|Server1| 192.168.0.111 | 7012 | N/A | false |2->| Proxy1 |All LocalAddresses| 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listenport|SSL enabled|_|________|___________________|___________|_______________|_____ ______|1|Server1| 192.168.0.111 | 7012 | N/A | false |2->| Proxy1 |All LocalAddresses| 7001 | N/A | false | Modify "Listen address" OR [Exit][Previous][Next]> 192.168.0.111<------------------- BEA WebLogic Configuration Wizard------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typicalproduction 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 |_|________|_______________|____________|________________|_______ _____|1|Server1 | 192.168.0.111| 7012 | N/A | false |2->| Proxy1 | 192.168.0.111| 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled |_|________|_______________|____________|________________|_______ _____|1|Server1 | 192.168.0.111| 7012 | N/A | false |2->| Proxy1 | 192.168.0.111| 7001 | N/A | false |Modify "Listen port" OR [Exit][Previous][Next]> 7013<------------------- 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 |_|________|_______________|____________|________________|_______ _____|1|Server1 | 192.168.0.111| 7012 | N/A | false |2->| Proxy1 | 192.168.0.111| 7013 | 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled |_|________|_______________|____________|________________|_______ _____|1|Server1 | 192.168.0.111| 7012 | N/A | false |2->| Proxy1 | 192.168.0.111| 7013 | N/A | false |Use above value or select another option:1 - Add2 - Modify3 - Delete4 - Discard Changes配置受管理服务器Server2Enter 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* |Listen address |Listen port |SSL listen port |SSL enabled |_|________|_______________|____________|________________|_______ _____|1|Server1 | 192.168.0.111| 7012 | N/A | false |2->| Proxy1 | 192.168.0.111| 7013 | N/A | false |Enter name for a new OR [Exit][Previous][Next]> Server2<------------------- 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 enterpriseapplications.| Name* | Listen address |Listen port|SSL listenport|SSL enabled|_|________|___________________|___________|_______________|_____ ______|1|Server1| 192.168.0.111 | 7012 | N/A | false |2| Proxy1| 192.168.0.111 | 7013 | N/A | false |3->|Server2 |All LocalAddresses| 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 Server is an instance of WebLogic Server used to host enterprise applications.| Name* | Listen address |Listen port|SSL listenport|SSL enabled|_|________|___________________|___________|_______________|_____ ______|1|Server1| 192.168.0.111 | 7012 | N/A | false |2| Proxy1| 192.168.0.111 | 7013 | N/A |false |3->|Server2 |All LocalAddresses| 7001 | N/A | false |Modify "Listen address" OR [Exit][Previous][Next]> 192.168.0.112<------------------- 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 |_|________|_______________|____________|________________|_______ _____|1|Server1 | 192.168.0.111| 7012 | N/A | false | 2| Proxy1 | 192.168.0.111| 7013 | N/A | false |3->|Server2 | 192.168.0.112| 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。

WebLogic10.3安装部署

WebLogic10.3安装部署

WebLogic10.3安装部署WebLogic10.3安装配置(图文) ◆webLogic安装:1,安装weblogic10:(此处略)按默认安装。

◆配置weblogic10 domain:1,创建一个weblogic domain:如图所示:点击next进入下一步:此处默认选项,直接点击next进入下一步:输入域名和域名所处位置(配置domain name,不能在同一个目录下配置多个domain)点击下一步:配置进入控制台的用户名和密码:密码最少为八位:注意此处默认选择weblogic自带的jdk,不能选择已安装的高版本的其他jdk:运行管理服务的WebLogic服务器称为管理服务器, 每个WebLogic受管服务器都会在启动时从管理服务器得到各自的属性配置.点击next进入下一步:输入用户名、监听地址以及监听端口。

安装成功以后,可以看到如下所示:点击启动weblogic10服务器:如下所示,打开浏览器,输入:http://192.168.16.21:7001/console 如下所示,则服务器成功启动:在myeclipse下配置weblogic101,启动Eclipse,选择“Window -> Preferences”菜单,打开首选项对话框。

展开MyEclipse 下的Application Servers 节点,点击WebLogic 10,选中右边的Enable 单选按钮,启用WebLogic 服务器。

配置如下:2,接着展开WebLogic 10 节点,点击JDK,在右边的WLS JDK name 处选择WebLogic 10 的默认JDK单击Add 按钮,弹出WebLogic -> Add JVM 对话框,在JRE 主目录处选择WebLogic 安装文件夹中的JDK 文件夹,这时候就可以在WLS JDK name 组合框中选择jdk150_04 了。

配置完成后,在myeclipse的工具栏可以看到如下所示:配置weblogic10的JDBC Data Source1,进入webloglic10控制台:http://192.168.16.21:7001/console/在左边的Domain Structure选择数据源进入数据源配置页面点击“新建”按钮进入“新建JDBC Data Source”页面配置数据源的名字,JNDI的名字,选择数据库,在Database Driver选择时注意选择XA和non-XA驱动:选择XA(分布式事务支持)驱动,进入下一步:Next进入下一步,配置jdbc数据源选项点击Test Configuration测试Jdbc数据源:如下所示,则测试成功点击finish完成。

WebLogic10.3+Apache2.2集群配置图文指南(含windows版和unix版)

WebLogic10.3+Apache2.2集群配置图文指南(含windows版和unix版)

WebLogic+Apache 集群配置指南(V 1.0)目录第1章集群配置简介 ....................................................................................................... 1-1第2章安装准备............................................................................................................... 2-12.1硬件配置 .................................................................................................................................... 2-1 2.2软件配置 .................................................................................................................................... 2-12.3集群环境说明 ............................................................................................................................ 2-1第3章WINDOWS环境下的集群配置............................................................................. 3-13.1W EB L OGIC 10.3集群配置.......................................................................................................... 3-13.1.1 创建主控服务器domain .................................................................................................... 3-13.1.2 创建被管服务器domain .................................................................................................. 3-123.2A PACHE H TTP S ERVER配置 ....................................................................................................... 3-223.2.1 安装Apache ...................................................................................................................... 3-223.2.2 安装weblogic module扩展模块...................................................................................... 3-223.2.3 配置Apache Http Server .................................................................................................. 3-223.3启动集群 .................................................................................................................................. 3-233.3.1 启动Apache Http Server .................................................................................................. 3-233.3.2 启动主控服务器............................................................................................................... 3-243.3.3 启动代理服务器............................................................................................................... 3-253.3.4 启动被管服务器1 ............................................................................................................ 3-253.3.5 启动被管服务器2 ............................................................................................................ 3-263.4验证集群启动 .......................................................................................................................... 3-263.5停止集群 .................................................................................................................................. 3-273.5.1 停止被管服务器1 ............................................................................................................ 3-273.5.2 停止被管服务器2 ............................................................................................................ 3-273.5.3 停止代理服务器............................................................................................................... 3-273.5.4 停止主控服务器............................................................................................................... 3-283.5.5 停止Apache Http Server .................................................................................................. 3-283.6将数据源部署到集群上 .......................................................................................................... 3-293.7将应用部署到集群上 .............................................................................................................. 3-32第4章AIX环境下的集群配置 ....................................................................................... 4-354.1W EB L OGIC 10.3集群配置........................................................................................................ 4-354.1.1 用图形界面方式配置集群............................................................................................... 4-354.1.2 用命令行方式配置集群................................................................................................... 4-36 4.2A PACHE H TTP S ERVER配置 ....................................................................................................... 4-374.2.1 安装Apache ...................................................................................................................... 4-374.2.2 安装weblogic module扩展模块...................................................................................... 4-384.2.3 配置Apache Http Server .................................................................................................. 4-39 4.3启动集群 .................................................................................................................................. 4-394.3.1 启动Apache Http Server .................................................................................................. 4-394.3.2 启动主控服务器............................................................................................................... 4-404.3.3 启动代理服务器............................................................................................................... 4-404.3.4 启动被管服务器1 ............................................................................................................ 4-404.3.5 启动被管服务器2 ............................................................................................................ 4-41 4.4验证集群启动 .......................................................................................................................... 4-41 4.5停止集群 .................................................................................................................................. 4-424.5.1 停止被管服务器1 ............................................................................................................ 4-424.5.2 停止被管服务器2 ............................................................................................................ 4-424.5.3 停止代理服务器............................................................................................................... 4-424.5.4 停止主控服务器............................................................................................................... 4-424.5.5 停止Apache Http Server .................................................................................................. 4-42 4.6将数据源部署到集群上 .......................................................................................................... 4-43 4.7将应用部署到集群上 .............................................................................................................. 4-43第1章集群配置简介本文将介绍WebLogic的集群配置及Apache Http Server的安装配置,以及在集群环境下创建数据源部署应用。

weblogic10.3集群配置

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集群配置

Weblogic集群配置

Weblogic集群配置1 weblogic安装完成以后打开配置向导2如果已经创建了weblogic域就选择扩展weblogic域,如果没有创建,就选择创建新的3选择生成一个自动配置域4修改域名5输入用户名及口令6选择生产模式7第一台选择管理服务器,受管服务器两项,第二三台,只选择第二项8配置管理服务器IP及端口9配置3台受管服务器IP及端口10不用配置,直接下一步11配置3台计算机的IP及端口12将服务器添加到对应的计算机13选择创建14点击完成,并启动管理服务器16到C:\Oracle\Middleware\wlserver_10.3\common下复制nodemanager文件夹到C:\Oracle\Middleware\user_projects\domains目录下17修改文件nodemanager.properties将路径改成nodemanager文件夹的真实路径18将startNodeManager.cmd复制到nodemanager下面,并打开编辑将NODEMGR_HOME 也改成nodemanager文件夹真实路径19重复1-18步的操作安装第2,3台计算机20第一台启动管理服务器,3台都启动节点服务器startNodeManager.cmd,在第一台上访问weblogic,选择环境-服务器,点击对应服务器,切换到控制界面,点击启动将3台服务器全部启动。

启动单台节点服务器可使用命令:C:\Oracle\Middleware\user_projects\domains\base_domain\bin\startManagedWebLogic.cmd mSrv1 http:\\localhost:7001。

Weblogic集群配置(附带截图)

Weblogic集群配置(附带截图)

Weblogic集群配置(附带截图)1.1.1本节样例部署方案描述本文中将以如下部署方案进行说明:1)单机环境下做集群,服务器ip地址192.168.71.2082)Weblogic安装跟路径WEBLOGIC_HOME=/opt/bea3)JVM安装根路径JA VA_HOME=/opt/java1.44)WebLogic域建立在%WEBLOGIC_HOME%/user_projects/domains 下,域名为:siClusterDomain5)应用程序部署在%WEBLOGIC_HOME%/user_projects/applications 下6)日志文件放在siClusterDomain下7)siClusterDomain 下WebLogic Server的建立:adminServer: 192.168.71.208:7010 管理使用appServer1 : 192.168.71.208:7011 部署社保应用appServer2 : 192.168.71.208:7012 部署社保应用proxyServer: 192.168.71.208:7013 部署代理应用updateServer: 192.168.71.208:7014 部署版本分发应用,用于客户端程序更新本例中使用软件负载均衡器进行分发处理,实施中如果使用硬件负载均衡器,则跳过proxyServer的建立及代理应用的部署环节。

8)appServer1和appServer2上java虚拟机内存分配:各1843M 32位java虚拟机下,内存分配最大1.8G(即1843M),不能超过1.8G9)建立集群名称为:myCluster,包含appServer1和appServer2数据库服务器192.168.71.218:1521:orcl,支撑数据库用户名/密码为drm_hnsimis/drm_hnsimis,业务数据库的用户名/密码为hnsimis/hnsimis1.1.2创建Domain、Server和Cluster输入密码登陆服务器:Wizard。

Linux下WebLogic10.3的安装与配置

Linux下WebLogic10.3的安装与配置

Linux下WebLogic10.3的安装与配置§2.1 安装准备●下载WebLogic10.3 for x86 linux安装文件;●安装SUSE Linux enterprise Server 11.0;●检查SUSE环境,确保/root空闲空间在2G以上。

如果/root空间不足,则应扩展root空间,或创建一个新的文件系统,并确保该文件系统空间在2G以上。

本手册假定该文件系统的mount点是/soft;如root的空间足够,则在root创建目录/soft作为安装源目录;●创建WebLogic使用的文件系统,该文件系统的mount点建议为/bea,空间应在2G以上,后续将安装WebLogic软件到该文件系统中。

§2.2 安装过程§2.2.1 创建bea组和weblogic用户使用root登录操作系统,执行下列命令创建bea组和weblogic用户。

bea组号为600,weblogic 用户号为600,属于bea组,home目录为/bea。

# groupadd -g 600 bea# useradd -d /bea -u 600 -g 600 weblogic# passwd weblogic -- 激活weblogic用户执行下列命令将/bea分配给weblogic用户。

# cd /# chown weblogic:bea /bea# chmod 755 /bea§2.2.2 上传安装文件并执行使用weblogic登录,使用bin模式,上传WebLogic安装文件server103_linux.bin到soft目录,执行下列命令执行安装文件。

$ cd /soft$ chmod a+x server103_linux.bin$ ./server103_linux.bin -mode=console系统自动解压缩安装文件,并启动文本的安装界面。

§2.2.3 欢迎界面<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->Welcome:--------This installer will guide you through the installation of WebLogic Platform10.3.0.0. Type "Next" or enter to proceed to the next prompt. If you want tochange data entered previously, type "Previous". You may quit the installer at any time by typing "Exit".Enter [Exit][Next]> next§2.2.4 指定WebLogic主目录为/bea<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->Choose BEA Home Directory:--------------------------"BEA Home" = [Enter new value or use default "/root/bea"]Enter new BEA Home OR [Exit][Previous][Next]> /bea<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->Choose BEA Home Directory:--------------------------"BEA Home" = [/bea]Use above value or select another option:1 - Enter new BEA Home2 - Change to default [/root/bea]Enter option number to select OR [Exit][Previous][Next]> next§2.2.5 选择安装类型为Custom<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->Choose Install Type:--------------------Select the type of installation you wish to perform.->1|Complete| Install the following software products and examples:| - WebLogic Server| - Workshop2|Custom| Choose software products and components to install and perform optional|configuration.Enter index number to select OR [Exit][Previous][Next]> 2§2.2.6 选择要安装的产品组件需取消安装Workshop和Server Examples<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->Choose Products and Components:-------------------------------Release 10.3.0.0|_____WebLogic Server [1] x| |_____Core Application Server [1.1] x| |_____Administration Console [1.2] x| |_____Configuration Wizard and Upgrade Framework [1.3] x| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x| |_____WebLogic JDBC Drivers [1.5] x| |_____Third Party JDBC Drivers [1.6] x| |_____WebLogic Server Clients [1.7] x| |_____WebLogic Web Server Plugins [1.8] x| |_____UDDI and Xquery Support [1.9] x| |_____Server Examples [1.10] x|_____Workshop [2] x|_____Workshop for WebLogic [2.1] x|_____Workshop Runtime Framework [2.2] x*Estimated size of installation: 788.3 MBEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2 <--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->Choose Products and Components:-------------------------------Release 10.3.0.0|_____WebLogic Server [1] x| |_____Core Application Server [1.1] x| |_____Administration Console [1.2] x| |_____Configuration Wizard and Upgrade Framework [1.3] x| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x| |_____WebLogic JDBC Drivers [1.5] x| |_____Third Party JDBC Drivers [1.6] x| |_____WebLogic Server Clients [1.7] x| |_____WebLogic Web Server Plugins [1.8] x| |_____UDDI and Xquery Support [1.9] x| |_____Server Examples [1.10] x|_____Workshop [2]|_____Workshop for WebLogic [2.1]|_____Workshop Runtime Framework [2.2]*Estimated size of installation: 406.3 MBEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1.10 <--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->Choose Products and Components:-------------------------------Release 10.3.0.0|_____WebLogic Server [1] x| |_____Core Application Server [1.1] x| |_____Administration Console [1.2] x| |_____Configuration Wizard and Upgrade Framework [1.3] x| |_____Web 2.0 HTTP Pub-Sub Server [1.4] x| |_____WebLogic JDBC Drivers [1.5] x| |_____Third Party JDBC Drivers [1.6] x| |_____WebLogic Server Clients [1.7] x| |_____WebLogic Web Server Plugins [1.8] x| |_____UDDI and Xquery Support [1.9] x| |_____Server Examples [1.10]|_____Workshop [2]|_____Workshop for WebLogic [2.1]|_____Workshop Runtime Framework [2.2]*Estimated size of installation: 360.4 MBEnter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> next §2.2.7 选择要安装的JDK<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->JDK Selection (Any * indicates BEA Supplied VM):------------------------------------------------JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution.1|Add Local Jdk2|/bea/jdk160_05[x]*3|/bea/jrockit_160_05[x]**Estimated size of installation: 713.2 MBEnter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> next§2.2.8 安装确认<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->Choose Product Installation Directories:----------------------------------------BEA Home Directory: [/bea]Product Installation Directories:"WebLogic Server" = [Enter new value or use default "/bea/wlserver_10.3"]Enter new WebLogic Server OR [Exit][Previous][Next]> next<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 --------------->The following Products and JDKs will be installed:--------------------------------------------------WebLogic Platform 10.3.0.0|_____WebLogic Server| |_____Core Application Server| |_____Administration Console| |_____Configuration Wizard and Upgrade Framework| |_____Web 2.0 HTTP Pub-Sub Server| |_____WebLogic JDBC Drivers| |_____Third Party JDBC Drivers| |_____WebLogic Server Clients| |_____WebLogic Web Server Plugins| |_____UDDI and Xquery Support|_____JDKs|_____Sun SDK 1.6.0_05|_____BEA JRockit 1.6.0_05 SDK*Estimated size of installation: 713.3 MBEnter [Exit][Previous][Next]> next§2.2.9 文件复制<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------> Installing files..0% 25% 50% 75% 100%[------------|------------|------------|------------][*****************************Performing String Substitutions...Creating Domains...§2.2.10 安装结束<--------------- Oracle Installer - WebLogic Platform 10.3.0.0 ---------------> Installation CompleteCongratulations! Installation is complete.Press [Enter] to continue or type [Exit]> 按回车键§2.3 创建管理服务器的域AdminServer Name: AdminServerListen Address: 192.168.100.1Listen Port: 8080SSL Listen Port: 8081SSL enabled: trueDomain Name: weblogic§2.3.1 运行Configuration Wizard$ cd /bea/wlserver_10.3/common/bin./config.sh -mode=console§2.3.2 选择创建新域<-------------------- Oracle 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§2.3.3 选择域源<-------------------- Oracle 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 a list 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<-------------------- Oracle 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]> next §2.3.4 配置管理员及密码<-------------------- Oracle WebLogic Configuration Wizard ------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is thedefault 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<-------------------- Oracle WebLogic Configuration Wizard ------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is thedefault administrator used to start development mode servers."*User password:" = []Enter new *User password: OR [Exit][Reset][Accept]><-------------------- Oracle WebLogic Configuration Wizard ------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is thedefault 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<-------------------- Oracle WebLogic Configuration Wizard ------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is thedefault administrator used to start development mode servers."*Confirm user password:" = []Enter new *Confirm user password: OR [Exit][Reset][Accept]><-------------------- Oracle WebLogic Configuration Wizard ------------------->Configure Administrator Username and Password:----------------------------------------------Create a user to be assigned to the Administrator role. This user is thedefault 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]> Next§2.3.5 选产品模式+JRockitJDK<-------------------- Oracle 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<-------------------- Oracle WebLogic Configuration Wizard ------------------->Java SDK Selection:-------------------->1|JRockit SDK 1.6.0_05 @ /bea/jrockit_160_052|Sun SDK 1.6.0_05 @ /bea/jdk160_053|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> 1§2.3.6 选择要定制环境与服务设置<-------------------- Oracle 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]> 1§2.3.7 暂不配置安全存储<-------------------- Oracle WebLogic Configuration Wizard ------------------->Configure RDBMS Security Store Options:---------------------------------------Create the RDBMS tables in your datastore prior to booting your domain. Thescripts for use by your DBA are in WebLogic Server's server/lib directory.Click Next to keep the template settings or bypass RDBMS options.->1|I don't want to change anything here.2|I want to create, change, or remove RDBMS support.Enter index number to select OR [Exit][Previous][Next]> 1§2.3.8 配置管理服务器的端口<-------------------- Oracle 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]> 2<-------------------- Oracle 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 "Listen address" OR [Exit][Previous][Next]> 192.168.100.30<-------------------- Oracle 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: | 192.168.100.30 |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<-------------------- Oracle 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 "Listen port" OR [Exit][Previous][Next]> 8080<-------------------- Oracle 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: | 8080 |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]> 4<-------------------- Oracle 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.*Enter index number to modify "Value"1|true->2|false3|UnspecifiedEnter index number to select OR [Exit][Reset][Accept]> 1<-------------------- Oracle 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: | 8080 |4| SSL listen port: | 7002 |5| SSL enabled: | true |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL listen port"5 - Modify "SSL enabled"6 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> 4<-------------------- Oracle 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: | 8080 |4| SSL listen port: | 7002 |5| SSL enabled: | true |Enter value for "SSL listen port" OR [Exit][Previous][Next]> 8081<-------------------- Oracle 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: | 8080 |4| SSL listen port: | 8081 |5| SSL enabled: | true |Use above value or select another option:1 - Modify "Name"2 - Modify "Listen address"3 - Modify "Listen port"4 - Modify "SSL listen port"5 - Modify "SSL enabled"6 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> next§2.3.9 暂不添加受管的服务器<-------------------- Oracle WebLogic Configuration Wizard ------------------->Configure Managed Servers:--------------------------Add or delete configuration information for Managed Servers. A typicalproduction 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]> next<-------------------- Oracle WebLogic Configuration Wizard ------------------->Configure Clusters:-------------------Add or delete configuration information for clusters. A cluster containsmultiple 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]> next§2.3.10 暂不添加受管的主机<-------------------- Oracle WebLogic Configuration Wizard -------------------> Configure Machines:-------------------Add or delete machines. A machine hosts 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 |_|_______|_____________________________|__________________________| Enter name for a new Machine OR [Exit][Previous][Next]> next<-------------------- Oracle WebLogic Configuration Wizard -------------------> Configure Unix Machines:------------------------Add or delete machines. A machine hosts one or more WebLogic Server instances. The Admin Server and Node Manager use this machine definition to start remote servers.| Name |_|______|Enter name for a new Unix Machine OR [Exit][Previous][Next]> next§2.3.11 指定域名<-------------------- Oracle WebLogic Configuration Wizard ------------------->Select the target domain directory for this domain:---------------------------------------------------"Target Location" = [Enter new value or use default"/bea/user_projects/domains"]Enter new Target Location OR [Exit][Previous][Next]> next<-------------------- Oracle WebLogic Configuration Wizard -------------------> Edit Domain Information:------------------------| Name | Value |_|________|_____________|1| *Name: | base_domain |Enter value for "Name" OR [Exit][Previous][Next]> weblogic<-------------------- Oracle WebLogic Configuration Wizard -------------------> Edit Domain Information:------------------------| Name | Value |_|________|__________|1| *Name: | weblogic |Use above value or select another option:1 - Modify "Name"2 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> next§2.3.12 创建域<-------------------- Oracle WebLogic Configuration Wizard -------------------> Creating Domain...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Weblogic 10.3集群配置手册(版本号:V1.0)目录1.预备知识 (2)2.本文环境 (2)3.配置WebLogic Server集群 (2)1.预备知识什么是Domain和ServerDomainDomain是WebLogic Server实例的基本管理单元。

所谓Domain就是,由配置为Administrator Server的WebLogic Server实例管理的逻辑单元,这个单元是有所有相关资源的集合。

ServerServer是一个相对独立的,为实现某些特定功能而结合在一起的单元。

Domain and Server的关系一个Domain 可以包含一个或多个WebLogic Server实例,甚至是Server集群。

一个Domain中有一个且只能有一个Server 担任管理Server的功能,其它的Server具体实现一个特定的逻辑功能。

2.本文环境平台:RHL 5.0软件:WebLogic Server 10.3配置WebLogic Server集群WebLogic集群的体系结构单层混合型的集群架构(Cluster)这种架构将所有的Web应用以及相关的服务应用全部置于集群中的单一WLS实例中,这种架构的优势在于:易于管理灵活的负载平衡机制更强的安全控制多层结构的集群架构(Cluster)这种架构使用两个WLS集群,一个放置表静态内容和集群Servlet,另一个放置集群EJB。

一般应用于下面这些情况:在负载平衡机制需要调用集群EJB中的方法时;在提供内容与提供对象的服务之间需要更大的机动性时;在需要更高的系统稳定性时;配置集群应用的必要条件集群中的所有Server必须位于同一网段,并且必须是IP广播(UDP)可到达的集群中的所有Server必须使用相同的版本,包括Service Pack集群中的Server必须使用永久的静态IP地址。

动态IP地址分配不能用于集群环境。

如果服务器位于防火墙后面,而客户机位于防火墙外面,那么服务器必须有公共的静态IP 地址,只有这样,客户端才能访问服务器要以CLUSTER方式运行,必须有包含CLUSTER许可的LICENSE才行配置前的规划在配置集群应用前要对集群的配置信息有一个良好的规划,下面就是我们这次配置的集群信息:在同一网段内的不同机器上配置集群,其中Managed_Server_X为受管理服务器,根据现场实际情况决定数量。

使用Domain Configuration Wizard进行配置创建新的Domain输入命令“./config.sh”,单击“下一步”按钮,如果没有配置环境路径,可进入/../weblogic/Oracle/Middleware/wlserver_10.3/common/bin/安装目录执行。

(路径根据需求)选择安装域源选择安装“WebLogic Server”,单击“下一步”按钮指定域名和位置(根据需求)输入域名,单击“下一步”按钮。

配置管理员用户名和密码输入Weblogic管理员管理服务器(AdminServer)的用户名和密码,在此以“Weblogic”作用登录管理服务器的用户名,密码123456789,单击“下一步”按钮配置域启动模式和JDK选择“生产模式”和“JRockt SDK”后,单击“下一步”按钮选择可选配置选择“管理服务器”和“受管服务器,集群和计算机”,单击“下一步”按钮。

配置管理服务器根据集群配置前的规划,输入Administrator Server的名称,监听地址,监听端口,如果需要SSL支持的话可以在“SSL enabled”后面的复选取框上打勾,配置SSL监听端口,单击“下一步”按钮。

配置受管理服务器(代理服务器实际上也是一个受管理服务器)根据集群配置规划输入Managed Server的名称,监听地址,监听端口,如果需要SSL 支持的话,可以在“SSL enabled”复选框上打勾,配置SSL监听端口。

可以配置多个Managed Server。

单击“下一步”按钮配置群集信息(根据需求)单击“添加”,输入Cluster的名称,Cluster messaging mode默认即可,Cluster address 输入210.41.121.134:7082,210.41.121.135:7080。

单击“下一步”按钮(注)Cluster address的值就是受管理服务器的IP地址:端口号,以逗号隔开。

将“受管理服务器”添加到“集群”中选择左面列表中的Managed_Server_x,将其添加到右面的列表中,这里代理服务器(Proxy_Server)不要添加到右边,单击“下一步”按钮创建HTTP代理应用程序选中“创建Http代理”,代理服务器选择前面没有加入sxscmsCluster的Proxy_Server,单击“下一步”按钮配置计算机在此不对计算机进行配置,单击“下一步”按钮检查Weblogic域在此检查前面所做的配置,如果没有问题单击“创建”按钮正在创建域创建无误后,单击“完成”按钮编辑启动WebLogic服务文件编辑口令文件在刚才创建的域目录下建立boot.properties文件,内容为:username=sxscmspassword=weblogic1在其它机器上配置受管理服务器一.按默认情况按装Weblogic 10.3二.启动Weblogic域配置向导,按默认选择,直接单击“下一步”三.选择域源按默认选择,单击“下一步”四.指定域名和位置输入域名,单击“下一步”按钮。

注:受管理服务器的域名可与管理服务器一直,亦可不一致。

五.配置管理员用户名和密码输入管理员的用户名和密码,这里为:用户名sxscms,密码welcome1,完成后单击“下一步”六.配置服务器启动模式和JDK这里选择“生产模式”,JDK选择“JRockit JDK”,完成后单击“下一步”。

七.选择可选配置选择“管理服务器”和“受管服务器,集群和计算机”,单击“下一步”八.配置管理服务器输入本机的管理服务器名称和地址以及端口号,完成后单击“下一步”。

九.配置受管理服务器这是一是重点,在这里设置的受管理服务器名称和IP地址以及端口号要与群集服务器上设置的一致,完成后单击“下一步”。

一〇.配置集群这里也与群集服务器配置不同,在这里不做任何处理直接单击“下一步”。

一一.配置计算机这一步我们也不做处理,直接单击“下一步”。

一二.检查Weblogic域检查你做的配置是否正确,完成后单击“下一步”。

一三.正在创建域稍等待创建完成后单击“完成”。

启动WebLogic服务在集群服务器上所创建的域的bin中做如下操作。

输入命令“./startWebLogic.sh”启动管理服务器输入命令“./startManagedWebLogic.shProxy_Serverhttp://210.41.121.134:7001”启动代理服务器输入命令“./startManagedWebLogic.shManaged_Server_1 http://210.41.121.134:7001”启动受管理服务器1在其它受管理服务器的bin目录下做如下操作。

输入命令“./startManagedWebLogic.shManaged_Server_1 http://210.41.121.135:7001”启动受管理服务器2(注意:中间会要你输入管理域的用户名和密码)部署WEB应用进入Console控制台(http://210.41.121.134:7001/console)。

进入console控制台后,在左边域结构树中点击“环境”前的“+”,在展开的菜单中点击“服务器”,在右边的列表中可以看到各服务器是否正常启动。

如果正常启动则单击“部署”,再单击“锁定编辑”,再单击“安装”,选择要部署的WEB应用程序完成后,单击“下一步”,再单击“下一步”,选择群集“myCluster”,再选择“群集中的所有服务器”,之后单击“下一步”,选中“将此应用程序复制到每个目标”再单击“完成”。

再单击左上角的“激活更改”。

启动WEB应用进入Console控制台(http://10.0.10.149:7001/console)。

进入console控制台后,点击“部署”选中列表中的应用,然后选择“为所有请求提供服务”,再单击“是”。

看到状态是“活动”就表示WEB应用启动完成。

测试集群的分发功能Session共享问题测试一.编辑weblogic.xml配置文件放到WEB应用程序的WEB-INF目录下,内容如下:<?xml version="1.0" encoding="UTF-8"?><weblogic-web-app xmlns="/ns/weblogic/90"><session-descriptor><debug-enabled>true</debug-enabled><persistent-store-type>replicated</persistent-store-type><sharing-enabled>true</sharing-enabled></session-descriptor><context-root>/</context-root></weblogic-web-app>二.在IE地址栏中输入http://210.41.121.134:8080/,并登录系统执行业务操作,这时你可以随便关闭或打开Managed_Server_1或Managed_Server2,只要保持有一个Managed_Server是启动状态,业务操作仍可继续执行,不必重新登录。

集群配置中要注意的问题AdminServer只用于集群的管理,而不能参与集群事务。

Web应用应该部署到集群上,文件的同步是由WebLogic来完成的。

相关文档
最新文档