linux下配置weblogic群集步骤和启动不同被管服务器中的节点配置方法
- 格式:doc
- 大小:2.06 MB
- 文档页数:19
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的集群还记得我们在第五天教程中讲到的关于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 8.1.6在LINUX下部署集群一、案例分析:1、上传server816_linux32.bin至三台机器的/home目录下;2、用shell工具分别登录三台服务器3、打开home目录:cd /home4、赋予server816_linux32.bin可读写权限chmod a+x server816_linux32.bin5、启动安装包 ./ server816_linux32.bin 此后会出现解压界面,解压到100%完成5.2欢迎界面直接回车即可出现lience界面,输入“1”,回车;5.3选择BEA 主目录输入“/weblogic/bea”,回车即可。
2.4 选择安装类型选择12.5选择产品的安装目录默认即可,直接回车2.6等待安装2.7等待安装JDK2.8完成安装回车后,安装过程会清除安装过程中的临时文件。
三、Linux系统及weblogic部分系统参数修改1、用FTP工具分别登录三台服务器2、打开下载etc目录下的hosts、exports及/etc/security下的limits.conf3、在hosts文件中加入192.168.80.202 app2192.168.80.201 app1192.168.80.203 app34、在exports文件中加入* 192.168.80.201(rw,sync)* 192.168.80.202(rw,sync)* 192.168.80.203(rw,sync)5、在limits.conf文件末尾中加入* soft nproc 8192* hard nproc 16384* soft nofile 8192* hard nofile 65536* soft nproc 16384 * hard nproc 32768 * soft nofile 16384 * hard nofile 655366、重启服务器 reboot四、创建域:1、/home/weblogic/bea/weblogic81/common/bin目录中的 config.sh 文件,会出现是创建还是扩展域的提示页面,选择第一个,创建一个新的域2、系统会提示选择模板注意选择Basic Weblogic Server Domain,每次的顺序可能不一样,选择数字的时候要注意3、系统会出现是否使用快速模式选项,建议选择非快速模式“2”。
Linux环境下搭建WebLogic 10.3.6集群服务十步曲(console模式)版本说明版本日期作者说明V1.0 2017-03-26 王林财初稿概要描述WebLogic wls1036_generic.jarJDK jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.binDataBase 11gOS Linux Redhat 6.5 64位1. 安装前准备篇 (33)1.1. 主机资源规划 (33)1.2. 安装介质准备 (33)2. 平台基础配置篇(双节点) (33)2.1. hosts文件配置 (33)2.2. ulimit参数配置 (44)2.3. Tcp默认连接超时时间配置 (44)3. 用户及权限配置篇(双节点) (44)3.1. 新增weblogic组及用户 (44)3.2. 修改目录所有者权限 (44)4. 节点1安装篇 (44)4.1. 安装jrockit jdk (44)4.1.1. 修改文件执行权限 (44)4.1.2. 执行安装文件 (44)4.1.3. 设置jrockit-jdk安装目录 (44)4.1.4. 确认安装 (55)4.1.5. 验证是否已安装成功 (55)4.2. 安装Weblogic (55)4.2.1. 执行安装文件 (55)4.2.2. 设置中间件安装主目录 (55)4.2.3. 设置是否接收安全更新(不接收) (66)4.2.4. 选择安装内容(只安装Weblogic Server) (66)4.2.5. 选择JDK (77)4.2.6. 确认WebLogic安装目录 (88)4.2.7. 验证是否已安装成功 (99)5. 节点1配置篇 (1010)5.1. 新建应用domain域 (1010)5.1.1. 执行weblogic配置向导文件 (1010)5.1.2. 选择新建或者扩展域(选择新建) (1010)5.1.3. 选择域控件或者模版(选择控件) (1010)5.1.4. 选择应用模版(默认选择Basic WebLogic Server Domain) (1111)5.1.5. 编辑域名称信息 (1111)5.1.6. 配置管理员用户及密码........ 错误!未定义书签。
Linux下Weblogic集群配置初步域,集群,管理服务器和被管服务器之间的关系Weblogic域是一个服务器/集群的管理组,用户可以通过某个中央位置来管理、监控整个服务器域,这个中心就是管理服务器,相对的,受控服务器或者叫被管服务器是指域中除了管理服务器以外的所有的服务器。
Weblogic集群是一个weblogic Server组,在一个集群中的服务器可以获得集群范围的命名服务、负载平衡以及容错等功能。
所以,一个weblogic域可以同时管理多个集群以及多个服务器实例。
另外,还有一个节点管理器的概念,节点管理器是指在物理的机器上运行的一个守护进程,通过它,管理服务器可以获得诸如在控制台中强制重启远程机器上的server等功能(没有节点管理器的情况下也是可以强制关闭远程服务器的,但是不能重启)。
除此之外,据说节点管理器还可以自动检查自己机器上的server实例(健康检查),当发现某个实例出现故障的时候,可以自动进行重启,这个没试过。
注意事项1.本文的weblogic均配置在linux环境下2.集群中管理服务器和被管服务器之间有用到ip组播UDP,所以这些服务器之间必须是UDP可以到达的。
3.好像动态ip的机器不能用于集群当中4.最佳实践说:请不要把管理服务器设置在集群当中5.本文所配置的集群只是实现了web层次上的负载平衡和容错,也就是servlet和jsp,其他的j2ee组件如ejb,jdbc,jms等都可以集群化。
本例测试域的规划Ip/port server 注释10.21.18.40:7001 adminServer 管理服务器10.21.18.40:7003 mServer1 被管服务器110.21.18.41:7001 mServer2 被管服务器210.21.18.40:7004 proxyServer 代理服务器配置过程建立管理服务器启动linux下的配置向导进入bea目录下的weblogic81/common/bin目录输入./config.sh,这里使用的终端登陆,所以没有图形环境,程序会以控制台模式启动第一步:选择建立新的域:启动配置向导后,系统提示如下:<------- BEA WebLogic Configuration Wizard---------->Create or Extend a Configuration:---------------------------------Choose between creating and extending a configuration. Based on your selection, the Configuration Wizard guides you throughthe steps to generate a new or extend an existing configuration.->1|Create a new WebLogic configuration| Start here to create a WebLogic configuration in your projects directory. 2|Extend an existing WebLogic configuration| Start here to extend an existing WebLogic configuration. Use this option to add applications and services,|including Database access (JDBC) and Messaging (JMS). This option also enables you to extend functionality by enabling|WebLogic Workshop.Enter index number to select OR [Exit][Next]> 1录入1回车,建立一个新的域。
1系统提示“Choose between creating and extending a domain”(在创建一个域和在一个已有的域基础上进行扩展之间选择其一),选择“1.Create a new Weblogic domain”(创建一个新的域),回车,执行下一步:2系统提示,“Select the source from which the domain will be created”(选择创建当前域的来源),选择“1.Choose Weblogic Platform components”(选择Weblogic模板),回车,执行下一步:3系统需要你确认安装模版,选择Next,回车,执行下一步:4系统提示,需要创建一个用户作为Weblogic控制台的管理员(Administrator),并设置其用户名密码:(1)如图2.3.5所示,选择“1”回车,创建控制台管理员用户名:图2.3.5(2)如图2.3.6所示,选择“2”,设置控制台管理员用户密码:图2.3.6(3)如图2.3.7所示,选择“3”,确认控制台管理员用户密码:图2.3.7(4)如图2.3.8所示,选择“4”,配置控制台管理员说明信息:图2.3.8(5)如图2.3.9所示,完成配置后选择下一步Next,回车:图2.3.95如图2.3.10所示,系统提示,“Domain Mode Configuration”(域的模式配置):✓ 1.Development Mode(开发模式)✓ 2.Production Mode(生产模式)生产环境选择“2.Production Mode”,测试环境选择“1.Development”,回车,执行下一步图2.3.106系统提示,请选择Java SDK(1)选择1.,回车,执行下一步:7系统提示“Do you want to modify any of the preconfigured settings or defaults in your template?”(请问您想要更改域的设置还是保留默认设置?)选择“1.yes”,手动调整域的设置,回车,执行下一步:8 选择3,修改domain的端口号:9 配置受管:next10 选择Target目录,next 用默认的11配置主服务名称:pjbjDomain540012 等待到创建成功13 配置启动服务的sh脚步:startAdmin.shexport USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:PermSize=300m -Dname=9999999999999999911111111111111111111110000000000000000111111119101" nohup sh startWebLogic.sh > 9101.out &sleep 1tail -f 9101.out然后启动startAdmin.sh(会报错)14 servers/AdminServer> 下创建目录security,在每个security中创建boot.properties,内容如下:username=weblogicpassword=weblogic(每个服务的代理,管理,受管服务都要配置)15 创建受管服务器测试组播联通性:java -classpath /home/weblogic/bea/weblogic92/server/lib/weblogic.jar utils.MulticastTest -N xx1 -A 239.192.22.121 -P 8902java -classpath /home/weblogic/bea/weblogic92/server/lib/weblogic.jar utils.MulticastTest -N xx2 -A 239.192.22.121 -P 8902(1)点击New,创建新的server(2)确认server属性,点击Finish (3)点击Activate Changes执行修改16 创建集群管理器创建集群管理器,指向之前建立的受管服务。
Weblogic集群安装手册(一)部署计划:10.2.66.88:6060 主控domain AdminServer10.2.66.88:7001 应用domain slave110.2.66.85:7001应用domain slave2(二)创建主控域运行$weblogic_home/common/bin/config.sh1、默认创建新的域2、选择默认模版3、默认选择创建基本的域4、调整域的名称,直接名称5、默认域创建目录6、设置weblogic用户和密码7、选择weblogic的启动模式,我这里选择的是生产模式8、选择jdk9、选择安装集群10、添加托管节点11、配置集群因为集群是通过广播(有unicast和multicast两种)来同步集群中的节点,并且把每个节点中的session通过这个广播地址来进行复制和同步,即主控域不断的时时刻刻的会和它下面的子节点间保持通讯、经常去询问各个子节点的。
集群信息传送模式:有unitcast与multicast两种,在11G版本前都是multicast10G后开始支持unicast 协议。
如果指定了multicast,就必须指定一个“多点传送地址”。
以下采用multicast方式,地址采用默认的,端口使用6060:12、关联集群与节点13、由于我们采取IP形式,不在这里指定计算机名,直接下一步,并创建域(三)创建节点(分别在10.2.66.88、10.2.66.85创建)1 – 3、和创建主控域一样4、调整域的名称为domain_70015 - 8、和创建主控域一样9、创建一般的应用域10、修改域名称和端口相关信息,并创建域(四)启动集群1、进入域目录启动主控weblogic输入(第6步设置的用户名密码) 用户名weblogic,密码weblogic1232、设置免密码登录,在AdmiServer下面创建security文件夹,里边包含boot.properties文件。
LinuxÑ Weblogic ?3zhenhua_hou@20100822WebLogic1 Ǐ ƅCentOS4.82 3'ࢉ1:oracle wls1033_oepe111150_linux32.bin/technetwork/middleware/ias/downloads/wls-main-097127.html 2:ftp xFtp/download/down_xfp3.html3:SSH SecureCRT,SSH,XShell3 3ŷࡾURRW/"Ǫ ȄÐ DZ ZHE/RJLF/"ጱ KRPH DZmkdir -p /u02/weblogicƘüZHE/RJLFጱ/"ᐡgroupadd weblogicƘü/ZHE/RJLFuseradd -g weblogic -d /u02/weblogic weblogic"Ƙüጱ/" 3passwd weblogicฎ ᡎ č ጱweblogicweblogicdz X " ጱᐡ/"cd /u02ls -laroot root 4096 Aug 23 15:29 u02 X DZ " ጱᐡ/" ᣩ%ŝZHE/RJLFchown -R weblogic:weblogic /u02/;IWSZOV BRHSH BOLQX[ ELQ࠳ X DZ dzZOV BRHSH BOLQX[ ELQ" ጱ/"ᐡ/"cd /u02ls -laroot root 968036147 Aug 23 15:39 wls1033_oepe111150_linux32.binã%ZOV BRHSH BOLQX[ ELQ/"ᐡ/"chown -R weblogic:weblogic /u02dzZOV BRHSH BOLQX[ ELQࢉጱ" 'Dcd /u02ls -la-rw-r--r--ã%ZOV BRHSH BOLQX[ ELQࢉጱ" 'D chmod 700 wls1033_oepe111150_linux32.bin4 ᡰࡾZHEORJLF/"Ǫ Ȅsu - weblogicɲ ZOV BRHSH BOLQX[ ELQ" ጱDZ "./wls1033_oepe111150_linux32.binŭ ÑࣞExtracting 0%....................................................................................................100%Unable to instantiate GUI, defaulting to console mode.<------------------------ Oracle Installer - WebLogic 10.3.3.0 ----------------------->Welcome:--------This installer will guide you through the installation of WebLogic 10.3.3.0. Type"Next" or enter to proceed to the next prompt. If you want to change data enteredpreviously, type "Previous". You may quit the installer at any time by typing "Exit".Enter [Exit][Next]>WebLogic10.ᡎ Ĩ=ŭ ࣞ<------------------------ Oracle Installer - WebLogic 10.3.3.0 ----------------------->Choose Middleware Home Directory:---------------------------------"Middleware Home" = [Enter new value or use default"/u02/weblogic/Oracle/Middleware"]Enter new Middleware Home OR [Exit][Previous][Next]>WebLogic:/u02/weblogic/Oracle/Middleware:/u02/weblogicᡎ X ZHEORJLFŭ ࣞ ÑEnter new Middleware Home OR [Exit][Previous][Next]> /u02/weblogic<------------------------ Oracle Installer - WebLogic 10.3.3.0 ----------------------->Choose Middleware Home Directory:---------------------------------"Middleware Home" = [/u02/weblogic]Use above value or select another option:1 - Enter new Middleware Home2 - Change to default [/u02/weblogic/Oracle/Middleware]Enter option number to select OR [Exit][Previous][Next]>ᡎ Ĩ=<------------------------ Oracle Installer - WebLogic 10.3.3.0 ----------------------->Choose Middleware Home Directory:---------------------------------Warning/u02/weblogic directory is not empty. Proceed with installation?Enter [Exit][Previous][Next]>/u02/weblogic"Ù፷าĨ=Register for Security Updates:------------------------------Provide your email address to be informed of security issues, install the product, andinitiate configuration manager. /support/policies.html1|Email:[]2|My Oracle Support Password:[]3|Receive Security Update:[Yes]Enter index number to select OR [Exit][Previous][Next]>SecurityᡎProvide your email address to be informed of security issues, install the product, andinitiate configuration manager. /support/policies.html"Receive Security Update:" = [Enter new value or use default "Yes"]Enter [Yes][No]?NOᡎ 12Register for Security Updates:------------------------------Provide your email address to be informed of security issues, install the product, andinitiate configuration manager. /support/policies.html"Receive Security Update:" = [Enter new value or use default "Yes"]** Do you wish to bypass initiation of the configuration manager and** remain uninformed of critical security issues in your configuration?Enter [Yes][No]?ᡎ \HVRegister for Security Updates:------------------------------Provide your email address to be informed of security issues, install the product, andinitiate configuration manager. /support/policies.html1|Email:[]2|My Oracle Support Password:[]3|Receive Security Update:[No]Enter index number to select OR [Exit][Previous][Next]>ᡎ Ĩ=ᐸȅChoose Install Type:--------------------Select the type of installation you wish to perform.->1|Typical| Install the following product(s) and component(s):| - WebLogic Server| - Oracle Coherence| - Oracle Enterprise Pack for Eclipse2|Custom| Choose software products and components to install and perform optional|configuration.Enter index number to select OR [Exit][Previous][Next]>ᕧ ᢚChoose Products and Components:-------------------------------Release 10.3.3.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 SCA [1.5] x| |_____WebLogic JDBC Drivers [1.6] x| |_____Third Party JDBC Drivers [1.7] x| |_____WebLogic Server Clients [1.8] x| |_____WebLogic Web Server Plugins [1.9] x| |_____UDDI and Xquery Support [1.10] x| |_____Server Examples [1.11]| |_____Evaluation Database [1.12] x|_____Oracle Coherence [2] x| |_____Coherence Product Files [2.1] x| |_____Coherence Examples [2.2]|_____Oracle Enterprise Pack for Eclipse [3] x|_____Common Files [3.1] x*Estimated size of installation: 959.2 MBEnter number exactly as it appears in brackets to toggle selection OR[Exit][Previous][Next]>Ĩ=JDK Selection (Any * indicates Oracle Supplied VM):---------------------------------------------------JDK(s) chosen for use with this product installation will be installed. Supporteddefaults if not deselected will be used in script string-substitution.1|Add Local Jdk2|/u02/weblogic/jdk160_18[x]*3|/u02/weblogic/jrockit_160_17_R28.0.0-679[x]**Estimated size of installation: 1,360.7 MBEnter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]>Ĩ= DZChoose Product Installation Directories:----------------------------------------Middleware Home Directory: [/u02/weblogic]Product Installation Directories:1|WebLogic Server: [/u02/weblogic/wlserver_10.3]2|Oracle Coherence: [/u02/weblogic/coherence_3.5]3|Oracle Enterprise Pack for Eclipse: [/u02/weblogic/oepe_11gR1PS2]Enter index number to select OR [Exit][Previous][Next]>Ĩ= ጱᐡ<------------------------ Oracle Installer - WebLogic 10.3.3.0 ----------------------->The following Products and JDKs will be installed:--------------------------------------------------WebLogic Platform 10.3.3.0|_____WebLogic Server| |_____Core Application Server| |_____Administration Console| |_____Configuration Wizard and Upgrade Framework| |_____Web 2.0 HTTP Pub-Sub Server| |_____WebLogic SCA| |_____WebLogic JDBC Drivers| |_____Third Party JDBC Drivers| |_____WebLogic Server Clients| |_____WebLogic Web Server Plugins| |_____UDDI and Xquery Support| |_____Evaluation Database|_____Oracle Coherence| |_____Coherence Product Files|_____Oracle Enterprise Pack for Eclipse| |_____Common Files|_____JDKs|_____SUN SDK 1.6.0_18|_____Oracle JRockit 1.6.0_17 SDK*Estimated size of installation: 1,360.8 MBEnter [Exit][Previous][Next]>Ĩ= ᡰAug 24, 2010 5:53:50 PM java.util.prefs.FileSystemPreferences$2 runINFO: Created user preferences directory.<------------------------ Oracle Installer - WebLogic 10.3.3.0 ----------------------->Installing files..0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]<------------------------ Oracle Installer - WebLogic 10.3.3.0 -----------------------> Installing JDK....0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************] Performing String Substitutions...<------------------------ Oracle Installer - WebLogic 10.3.3.0 -----------------------> Configuring OCM...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]Creating Domains...<------------------------ Oracle Installer - WebLogic 10.3.3.0 -----------------------> Installation CompleteCongratulations! Installation is complete.Press [Enter] to continue or type [Exit]>5 ſÐ DomainDomain<WEBLOGIC_HOME>/common/bin/config.shWebLogicɲ :(%/2*,&B+20(! FRPPRQ ELQ DZ Ñᡎ ./config.sh -mode=console<----------------------- Fusion Middleware Configuration Wizard ---------------------->Welcome:--------Choose between creating and extending a domain. Based on your selection, theConfiguration Wizard guides you through the steps to generate a new or extend anexisting domain.->1|Create a new WebLogic domain| Create a WebLogic domain in your projects directory.2|Extend an existing WebLogic domain| Use this option to add new components to an existing domain and modify|configuration settings.Enter index number to select OR [Exit][Next]>Ð ſጱ'RPDLQ ᡎ ŭ ࣞ ÑSelect Domain Source:---------------------Select the source from which the domain will be created. You can create the domainby selecting from the required components or by selecting from a list of existingdomain 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]>ᢚ:HE/RJLFఞċᐡࢉ ᡎ ŭ ࣞ ÑApplication Template Selection:-------------------------------Available Templates|_____Basic WebLogic Server Domain - 10.3.3.0 [wlserver_10.3]x|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.3.0 [wlserver_10.3] [2]|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.3.0 [wlserver_10.3] [3]Enter number exactly as it appears in brackets to toggle selection OR[Exit][Previous][Next]>ᢚ ᯿ &ᢚ ጱ "Ù፷าĨ=ਪċEdit Domain Information:------------------------| Name | Value |_|________|_____________|1| *Name: | base_domain |Enter value for "Name" OR [Exit][Previous][Next]>Ü/᯿ ጱč Ĩ=Select the target domain directory for this domain:---------------------------------------------------"Target Location" = [Enter new value or use default"/u02/weblogic/user_projects/domains"]Enter new Target Location OR [Exit][Previous][Next]>Ü/᯿ ጱɟ৭ Ĩ=Configure Administrator User Name and Password:-----------------------------------------------Create a user to be assigned to the Administrator role. This user is the defaultadministrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________| 1| *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 "Name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"Enter option number to select OR [Exit][Previous][Next]>ᡎ ã% ŭ ࣞ ÑConfigure Administrator User Name and Password:-----------------------------------------------Create a user to be assigned to the Administrator role. This user is the defaultadministrator used to start development mode servers."*User password:" = []Enter new *User password: OR [Exit][Reset][Accept]>ᡎ ZHEORJLF ŭ ࣞ ÑConfigure Administrator User Name and Password:-----------------------------------------------Create a user to be assigned to the Administrator role. This user is the defaultadministrator used to start development mode servers.| Name | Value |_|_________________________|_________________________________________| 1| *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 "Name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]>ᡎ ' "Ùጱ ༈ጱ ʺ %Configure Administrator User Name and Password:-----------------------------------------------Create a user to be assigned to the Administrator role. This user is the defaultadministrator used to start development mode servers."*Confirm user password:" = []Enter new *Confirm user password: OR [Exit][Reset][Accept]>ᡎ "ᡎ ጱ ZHEORJLFConfigure Administrator User Name and Password:-----------------------------------------------Create a user to be assigned to the Administrator role. This user is the defaultadministrator used to start development mode servers.| Name | Value |_|__________________ _|______________________ ________|1| *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 "Name"2 - Modify "User password"3 - Modify "Confirm user password"4 - Modify "Description"5 - Discard ChangesEnter option number to select OR [Exit][Previous][Next]> ŭɳÑʺ ॼ ፷าĨ=ਪċDomain Mode Configuration:--------------------------Enable Development or Production Mode for this domain.->1|Development Mode2|Production ModeEnter index number to select OR [Exit][Previous][Next]> ᢚ/ŝ ĿDomain Mode Configuration:--------------------------Enable Development or Production Mode for this domain.1|Development Mode->2|Production ModeEnter index number to select OR [Exit][Previous][Next]> ᢚ"ʺ ጱMGNJava SDK Selection:-------------------->1|JRockit SDK 1.6.0_17 @ /u02/weblogic/jrockit_160_17_R28.0.0-6792|Sun SDK 1.6.0_18 @ /u02/weblogic/jdk160_183|Other Java SDKEnter index number to select OR [Exit][Previous][Next]>᯿ ᢚ ጱ&-52FNLW Ĩ=ਪċSelect Optional Configuration:------------------------------1|Administration Server [ ]2|Managed Servers, Clusters and Machines [ ]3|RDBMS Security Store [ ]Enter index number to select OR [Exit][Previous][Next]>ᢚSelect Optional Configuration:------------------------------1|Administration Server [x]2|Managed Servers, Clusters and Machines [ ]3|RDBMS Security Store [ ]Enter index number to select OR [Exit][Previous][Next]>Ĩ=ਪċConfigure the Administration Server:------------------------------------Enter adminstration server configurations. Each WebLogic Server domain must haveone Administration Server. The Administration Server hosts the AdministrationConsole 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]>Ĩ=Creating Domain...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]**** Domain Created Successfully! ****Domain6 ৩WebLogic Server:Weblogic classpath${WL_HOME}/server/lib/weblogic.jarJDBC DRIVERDomain JA V A_HOME /u02/weblogic/jrockit_160_17_R28.0.0-679weblogic home vi .bash_profileexport WL_HOME=/u02/weblogic/wlserver_10.3export JA VA_HOME=/u02/weblogic/jrockit_160_17_R28.0.0-679exportCLASSPATH=$CLASSPATH:$JA V A_HOME/lib:$JA V A_HOME/jre/lib:$WL_HOME/ server/lib/weblogic.jarexport PATH=$JA V A_HOME/bin:$JA V A_HOME/jre/bin:$PATH:$HOMR/bin/u02/weblogic/user_projects/domains/base_domainstartWebLogic.shWebLogic Manager Serverhttp://10.10.0.100:7001/consoleweblogic:12345678Server-2Server70017100SSH/u02/weblogic/user_projects/domains/base_domain/config config.xml3AdminServer Server-0Server-12Server-2Unknownconfig.xmlServer-27100WebLogic Administration ServerWeblogic Manager Server WebLogic Manager Server(WebLogic Manager Server)(WebLogic Administration Server )(WebLogic Manager Server)2(WebLogic Manager Server)(WebLog Administration Server)./startManagerWebLogic.sh Server-0 http://10.10.0.100:7001/u02/weblogic/wlserver_10.3/common/bin./startManagedWebLogic.sh Server-2 http://10.10.0.100:7001:(WebLogic Manager Server)console WeblogicServer-2RUNNING7 Boot Identity Filessecurity boot.propertiessecurity boot.propertiesboot.propertiesboot.properties./startManagerServer.sh serverssecurity boot.propertiesboot.propertiesboot.propertiesboot.properties。
weblogic集群配置方法案例所属系统**市营销应用服务器zhyxwl01,zhyxwl02案例现象**市营销应用服务器,主机16G内存,目前使用情况:主机zhyxwl01主机zhyxwl02为了提高内存使用率,准备在两台主机上各新增一个域,并配置集群,然后部署应用。
案例平台环境查看主机信息uname –aLinux zhyxwl01 2.6.9-42.ELlargesmp #1 SMP Wed Jul 12 23:46:39 EDT 2006 x86_64 x86_64 x86_64 GNU/LinuxLinux zhyxwl02 2.6.9-42.EL #1 Wed Jul 12 23:15:20 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux查看weblogic版本信息[root@zhyxwl01 logs]# cat /bea/weblogic/logs/log.txt2008-1-4 19:28:37 -- install "WebLogic Platform" 9.2.2.0 at /bea/weblogic/weblogic92 release 9.2.2.0 [Added]|_____WebLogic Server [Added]| |_____Server [Added]| |_____Server Examples [Added]|_____Workshop for WebLogic Platform [Added]|_____Workshop [Added]|_____Workshop Examples [Added][root@zhyxwl01 logs]#[root@zhyxwl02 bin]# cat /bea/weblogic/logs/log.txt2008-1-4 20:03:47 -- install "WebLogic Platform" 9.2.2.0 at /bea/weblogic/weblogic92 release 9.2.2.0 [Added]|_____WebLogic Server [Added]| |_____Server [Added]| |_____Server Examples [Added]|_____Workshop for WebLogic Platform [Added]|_____Workshop [Added]|_____Workshop Examples [Added]查看JDK信息[root@zhyxwl01 logs]# echo $JA V A_HOME/bea/jrockit-R27.4.0-jdk1.5.0_12[root@zhyxwl02 bin]# echo $JA V A_HOME查询结果为空查看ip地址信息[root@zhyxwl01 logs]# ifconfigeth0 Link encap:Ethernet HWaddr 00:14:5E:BC:6D:3Binet addr:10.151.51.61 Bcast:10.151.51.255 Mask:255.255.255.0[root@zhyxwl02 bin]# ifconfigeth0 Link encap:Ethernet HWaddr 00:14:5E:BC:64:75inet addr:10.151.51.62 Bcast:10.151.51.255 Mask:255.255.255.0主机结构域和集群信息集群信息案例分析过程**市营销有两台应用服务器,主机16G内存,目前使用率较低,为了提高内存使用率,准备在两台主机上各新增一个域,并配置weblogic集群,然后部署应用(还要修改F5配置)。
这些天公司让我去弄weblogic集群,集群的理解就是多个物理服务器或者多个相同的服务组成一个服务器或者服务群集合在一起,由前台应用程序把多个请求分配到多个相同的后台服务器或者服务上面处理数据,实现负载均衡的不间断服务。
现在配置的Weblogic群集环境就是一个群集my_Cluster管理2台weblogic 服务器的节点.
群集:my_Cluster
weblogic服务器1 IP地址192.168.1.123节点node123端口号7123
weblogic服务器2 IP地址192.168.1.110节点node110端口号7110
这两个节点提高相同的服务,my_Cluster群集对外提供服务,把接受到的服务请求发送到节点weblogic服务器上面,实现数据的负载功能,客户端只会访问群集的地址。
不多说现在配置安装步骤
1,安装sun公司的jdk,sun公司的jdk功能多,使用系统默认的jdk安装weblogic时会报错,下载jdk-6u45-linux-x64.bin jdk-6u45-linux-x64-rpm.bin jdk-7u55-linux-x64.rpm jdk-8u5-linux-x64任一版本 ./任一版本即可会自动安装到/usr/java/jdk版本号目录里面的
2,安装完以后需要设置系统JAVA的环境变量,因为系统设置的是默认安装的java的环境变量,现在需要手动改过来。
vi /etc/profile加入下面的几行变量设置:export JAVA_HOME=/usr/java/jdk1.6.0_45
export JAVA_BIN=/usr/java/jdk1.6.0_45/bin
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH
然后输入命令update-alternatives --install /usr/bin/java java /usr/java/jdk1.7.0/bin/java 400
update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0/bin/javac 400
最后输入update-alternatives --config java ,选择对应的jdk
通过java -version命令可以查看当前默认jdk为sun jdk
3,创建weblogic组和帐号 groupadd weblogic useradd -g weblogic weblogic passwd weblogic
4,进入图形化界面安装weblogic init5进入图形化,如果在命令行输入init5 后等了很长时间画面不动那就是进入图形化桌面失败,原因是安装linux系统的时候自定义服务没有选择桌面、通用桌面这两项,现在如果配置有yum,用命令yum groupinstall desktop -y yum install gnome -y安装完成后可以进入图形化界面。
或者安装tiger-vncserver rpm包后配置vnc服务进入vnc桌面
vi /etc/sysconfig/vncserver 编辑配置文件
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERS="2:weblogic"
VNCSERVERARGS[2]="-geometry 1024x768"
使用命令su weblogic 切换到weblogic帐号----输入命令 vncserver ---这时会提示输入vnc密码,输入两遍正确后结束。
然后再修改/home/weblogic/.vnc/xstartup文件,注释掉最后两行,新编辑一行加入gnome-session & 意思是启用 gnome桌面环境
linux iptables防火墙里面加入iptables策略:iptables -A INPUT -p tcp --dport 5901:5902 -j ACCEPT
重启vncserver服务后可以用vnc客户端连接linux 端口号为:5902 使用weblogic帐号登录vnc
4,进入图形化以后使用命令安装weblogic10.3.6版本,也就是weblogic1036.jar 命令java -jar weblogic1036_generic.jar
正在加载-- 开始安装--
直接下一步
点击继续
选择典型-下一步
选择系统安装的sun jdk
下一步
再下一步安装
安装完成后,运行/bea/weblogic/Middleware/wlserver_10.3/comm/bin 下面的config.sh配置域
创建新的weblogic域--下一步
默认-下一步
户名和密码,启动node节点也需要这个用户名和密码
选择开发模式--下一步
选择管理服务器和受管服务器,这个集群中只能有一个管理服务器我设置的是192.168.1.123为管理服务器,受管服务器可以有多台,配置受管服务器的时候需要设置节点和端口号,node123对应192.168.1.123:7123 node110对应192.168.1.110:7110
刚才配置的受管服务器IP地址和端口号192.168.1.123:7123,192.168.1.110:7110
加入受管服务器
配置计算机默认下一步
点击创建
接下来安装配置另外一台weblogic服务器ip地址为192.168.1.110
配置步骤和上面的大部分一样,配置管理服务器的时候需要填写192.168.1.123的地址,如图:
配置受管服务器
配置群集。
创建完成以后,需要进入管理服务器192.168.1.123启动weblogic,进入安装目录/bea/weblogic/base_domain//user_projects/domains/base_domain
./startWeblogic.sh
启动完成以后最后一行会显示运行模式
打开浏览器输入http://192.168.1.123:7001/console
输入刚才设置的用户名和密码登录进入后画面是这样的
打开环境---服务器选项
此时可以看到,群集中只有AdminServer管理服务器是运行的,因为刚才我们输入了./startWeblogic.sh启动命令
而节点服务器node110和node123 没有启动,
群集中:node110是ip地址为192.168.1.110:7110的服务器
node123是ip地址为192.168.1.123:7123的服务器
改变群集中node110和node123状态为running需要进入对应的weblogic服务器启动各自的node节点服务。
现在开始启动群集中node123节点对应IP地址192.168.1.123的服务器上进入目录:
/bea/weblogic/base_domain/user_projects/domains/base_domain/bin里面
运行startMangedWwbLogic.sh脚本,启动node123节点
命令:./startMangedWwbLogic.sh node123
输入用户名和密码
可以看到输出控制台上面显示正在启动
在管理界面里面可以看到node123状态为重新获取
现在看到控制台输出为运行模式
再刷新web界面node123变为运行
启动另外一台weblogic服务器ip地址为192.168.1.110:7110
在192.168.1.110服务器上进入目录:
/bea/weblogic/base_domain/user_projects/domains/base_domain/bin下
运行startMangedWwbLogic.sh脚本,启动node110节点
输入用户名密码
最后一行显示为运行模式后再刷新web页面都显示运行状态
至此weblogic群集环境部署完成,后续的需要上传应用以及和oracle数据库服务器对接。