linux下weblogic集群部署
- 格式:doc
- 大小:625.50 KB
- 文档页数:10
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 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部署1.1 部署前准备把WebLogic的bin包放在/home目录上.1、创建weblogic用户组。
groupadd weblogicuseradd -g weblogic weblogicpasswd weblogic(修改weblogic密码)2、创建/var/web/jsp/bea目录,修改目录所有者权限mkdir /var/web/jsp/beachown -R weblogic:weblogic /var/web/jsp/bea3、用weblogic用户登陆系统,修改设置文件。
~/.bash_profile增加export LANG=en_US.iso8859151.2 安装WebLogic 8.1赋予.bin可执行权限:chmod a+x platform814_linux32.bin执行./platform814_linux32.bin -mode=console进入控制台安装的欢迎界面,键入[Next]继续此时出现授权许可协议,读完后键入[Yes]继续提示选择一个BEA主目录:输入:/var/web/jsp/bea确认BEA主目录,键入[1]继续选择安装类型, 键入[1]继续选择安装路径,默认,输入[next]继续。
确认安装路径。
键入[1]继续安装完毕。
注:(两个补丁文件见补丁包的说明)1.3 创建服务使用WebLogic用户登录系统:[weblogic@jcms bin]$ cd /var/web/jsp/bea/weblogic81/common/bin [weblogic@jcms bin]$ ./config.shUnable to instantiate GUI, defaulting to console mode.进入设置:Create or Extend a Configuration:---------------------------------Choose between creating and extending a configuration. Based on your selection, the Configuration Wizard guides you through the steps togenerate 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]> 1Select a Domain Template:-------------------------Please select a template from the list or select another directory of templates.*[/home/weblogic/bea/weblogic81/common/templates/domains] 1|Basic WebLogic Platform Domain 8.1.3.0| BEA Systems, Inc.| Create a basic WebLogic Platform domain, without installing sample applications. Domains created from this template will support the|WebLogic Server, WebLogic Workshop, WebLogic Integration and WebLogic Portal runtime functionality, including support for J2EE|applications, Web applications, Web Services, custom controls, business processes and portals. Use domains created from this template|for development of WebLogic Platform applications.2|Basic WebLogic Portal Domain 8.1.3.0| BEA Systems, Inc.| Create a basic WebLogic Portal domain, without installing sample applications. Domains created from this template will support the |WebLogic Server, WebLogic Workshop and WebLogic Portal runtime functionality, including support for J2EE applications, Web applications,|Web Services, custom controls and portals. Use domains created from this template for development of WebLogic Portal applications.3|Basic WebLogic Integration Domain 8.1.3.0| BEA Systems, Inc.| Create a basic WebLogic Integration domain, without installing sample applications. Domains created from this template will support|the WebLogic Server, WebLogic Workshop and WebLogic Integration runtime functionality, including support for J2EE applications, Web |applications, Web Services, custom controls and business processes. Use domains created from this template for development of WebLogic|Integration applications.4|Basic WebLogic Workshop Domain 8.1.3.0| BEA Systems, Inc.Enter index number to select OR [Down][Exit][Previous][Next]> downSelect a Domain Template:-------------------------Please select a template from the list or select another directory of templates.| Create a basic WebLogic Workshop domain, without installing sample applications. Domains created from this template will support the|WebLogic Server and WebLogic Workshop runtime functionality, including support for J2EE applications, Web applications, Web Services and |custom controls. Use domains created from this template for development of WebLogic Workshop applications.->5|Basic WebLogic Server Domain 8.1.3.0| BEA Systems, Inc.| Create a basic WebLogic Server domain without installing sample applications.6|WebLogic Server Examples Domain 8.1.3.0| BEA Systems, Inc.| Create the WebLogic Server Examples domain in a directory outside of the installed kit. The Examples domain contains a collection of|examples to show best practices for coding individual J2EE APIs.7|Avitek Medical Records Sample Domain 8.1.3.0| BEA Systems, Inc.| Create the Avitek Medical Records domain in a directory outside of the installed kit. The Avitek Medical Records is a WebLogic Server |sample application suite that concisely demonstrates all aspects of the J2EE platform.8|Select another directory locationEnter index number to select OR [Up][Exit][Previous][Next]>5Select a Domain Template:-------------------------Please select a template from the list or select another directory of templates.*The selected template is the same as the one you are working on. Do you *want to reload the template ?->1|Yes2|NoEnter index number to select OR [Exit][Next]> 1Choose Configuration Option:-------------------------*Do you want to run the wizard in express mode?->1|Yes2|NoEnter index number to select OR [Exit][Previous][Next]> 1Configure Administrative Username and Password:--------------------Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development modeservers.| Name | Value |_|_________________________|_________________________________|1| *User name: | weblogic |2| *User password: | |3| *Confirm user password: | |4| Description: | The default administration user |Select 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]> 2Configure Administrative Username and Password:--------------------Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development modeservers."*User password:" = []Input new *User password: OR [Exit][Reset][Accept]> [输入八位密码]Configure Administrative Username and Password:--------------------Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development modeservers.| Name | Value |_|_________________________|_________________________________| 1| *User name: | weblogic |2| *User password: | ****** |3| *Confirm user password: | |4| Description: | The default administration user |Select 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]> 3Configure Administrative Username and Password:--------------------Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development modeservers."*Confirm user password:" = []Input new *Confirm user password: OR [Exit][Reset][Accept]> [确认八位密码] ///口令必须和上面的相同Configure Administrative Username and Password:--------------------Create a user automatically assigned to the Administrative Role. This user is the default administrator used to start development modeservers.| Name | Value |_|_________________________|_________________________________| 1| *User name: | weblogic |2| *User password: | ******** |3| *Confirm user password: | ******** |4| Description: | The default administration user |Select 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]> nextDomain Mode Configuration:--------------------------Enable Development or Production Mode for this domain.->1|Development Mode2|Production ModeEnter index number to select OR [Exit][Previous][Next]> 2Java SDK Selection:-------------------->1|JRockit SDK 1.4.2_04-8130 @ /home/weblogic/bea/jrockit81sp3_142_04 2|Sun SDK 1.4.2_04 @ /home/weblogic/bea/jdk142_043|Other Java SDKEnter index number to select OR [Exit][Previous][Next]> 1Select the target domain directory for this configuration:----"Target Location" = [/home/weblogic/bea/user_projects/domains] Input new Target Location OR [Exit][Previous][Next]> [直接回车]Edit Domain Information:------------------------| Name | Value |_|________|__________|1| *Name: | mydomain |Enter value for "Name" OR [Exit][Previous][Next]> [输入名称或直接回车]Creating Domain...0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]**** Domain Created Successfully! ****完成服务的建立!1.4部署应用1.4.1启动和关闭1、怎么启动WebLogic[weblogic@jcms bin]$ cd /var/web/jsp/bea/user_projects/domains/mydomain [weblogic@jcms bin]$ ./startWebLogic.sh (需要输入用户名密码)2、怎么关闭WebLogic[weblogic@jcms bin]$ ./stopWebLogic.sh1.4.2 设置自动启动WebLogic1、无需输入用户名密码启动关闭weblogic。
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环境下搭建WebLogic1036集群服务十步曲培训资料步骤一:下载WebLogic安装包访问Oracle官方网站,下载WebLogic的安装包。
确保您选择了适用于Linux系统的版本。
步骤二:安装Java Development Kit(JDK)在Linux系统上安装JDK,WebLogic需要Java环境来运行。
您可以从Oracle官方网站下载最新的JDK安装包,并按照官方文档进行安装。
步骤三:解压WebLogic安装包使用解压工具,将WebLogic安装包解压到您选择的目录中,并进入解压后的目录。
步骤四:运行配置工具运行配置工具,它位于解压后的目录中。
根据提示,选择创建新的WebLogic域,并设置集群名称、管理员用户名和密码等。
步骤五:创建WebLogic域根据配置工具的提示,创建WebLogic域。
在此过程中,您需要指定域的名称、设置域的类型(集群型)以及其他相关设置。
步骤六:创建管理服务器在创建WebLogic域的过程中,您需要指定一个管理服务器的配置。
请确保指定的服务器是启用管理的。
步骤七:创建集群在WebLogic控制台中,选择创建一个新的集群,并指定集群的名称、可扩展性等级和其他相关配置。
步骤八:创建集群中的服务器选择集群,然后在控制台中创建一些服务器。
这些服务器将成为您集群中的节点,并用于部署应用程序。
步骤九:配置集群在集群配置中,您可以设置集群的故障恢复行为、负载均衡策略等。
根据您的需求,进行相应的配置。
步骤十:部署应用程序最后,将您的应用程序部署到WebLogic集群中的服务器上。
您可以使用WebLogic控制台或命令行工具来完成此操作。
以上是在Linux环境下搭建WebLogic1036集群服务的十个步骤。
当然,在实际搭建过程中,还可能会遇到各种挑战和问题。
因此,建议您参考WebLogic官方文档和社区论坛,以获取更详细的指导和支持。
继续写相关内容:步骤一:下载WebLogic安装包在Linux环境下搭建WebLogic集群之前,首先需要从Oracle官方网站下载WebLogic的安装包。
Weblogic10集群负载均衡安装和配置1、集群系统架构操作系统: linux as4 u8Weblogic版本 Weblogic10注意:有工作流或MQ时要单独安装,不要放到集群中2、系统整体架构2.1、Weblogic方案:(建议服务器有4G以上的内存)一台管理服务器:安装weblogic10 管理节点、受管节点。
二至五台应用服务器节点:安装Weblogic10 受管节点。
一台工作流服务器:安装WebSphere Application Server。
一台MQ服务器:安装WebSphere Application Server。
2.2、本例中的部署如下所示:管理节点和受管节点安装在主机 JWZHYY1,另一个受管节点单独安装主机名为JWZHYY2,组成一个集群,通过代理服务器来完成负载均衡。
3、集群的安装3.1、安装集群的先决条件注意,必须在每个服务器中编辑/etc/hosts文件使群集的服务器之间能够互相使用机器名访问。
保证每一台应用服务器都可以使用ping 群集应用服务器名称来访问,实例文件/etc/hosts内容如下127.0.0.1 localhost.localdomain localhost #本机192.168.1.3 jwzhyy1 #节点1192.168.1.4 jwzhyy2 #节点2192.168.1.8 jwzhdb1 #数据库1192.168.1.9 jwzhdb2 #数据库2以 root 用户身份登录并在每个主机上配置 Linux 内核参数。
cat >> /etc/sysctl.conf >>EOFkernel.shmall = 2097152kernel.shmmax = 4294967295kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default=262144net.core.wmem_default=262144net.core.rmem_max=262144net.core.wmem_max=262144EOF/sbin/sysctl -p使用date命令查看每一台机器的系统时间,如果服务器时间相差在五分钟之内,请跳过此步。
Apache配置WebLogic集群分发(Linux)目录一、安装Apache (2)1、拷贝apache安装包至linux文件夹 (2)2、解压apache安装包 (3)3、创建apache安装目录 (3)4、配置检查 (3)5、编译 (3)6、安装 (3)二、检查Apache是否安装成功 (3)1、启动Apache (3)2、检查Appache服务是否启动 (3)三、Apache分发配置 (3)四、重启apache服务 (5)五、常见问题 (5)六、注意事项 (5)一、安装Apache1、拷贝apache安装包至linux文件夹httpd-2.2.17.tar.gz放至/data/soft-installer目录2、解压apache安装包[root@localhost ~]# cd /data/soft-installer[root@localhost soft-installer]# tar zxvf httpd-2.2.17.tar.gz3、创建apache安装目录[root@localhost sof-installer]#cd /root/soft/httpd-2.2.17[***********************.17]#mkdir/usr/local/apache4、配置检查[root@localhost httpd-2.2.17]#./configure --prefix=/usr/local/apache --enable-so5、编译[***********************.17]#make6、安装[***********************.17]#makeinstall二、检查Apache是否安装成功1、启动Apache[***********************.17]#/usr/local/apache/bin/apachectlstart2、检查Appache服务是否启动[***********************.17]#ps-ef|grep httpd或者打开浏览器,在地址栏输入“http://ip”出现“It works!”或apache图标的漂亮界面,说明apache安装成功!三、Apache分发配置1、拷贝weblogic mod_wl_22.so至/usr/local/apache/modules/目录切换至weblogic目录如:/root/Oracle/Middleware/wlserver_10.3/server/plugin/linux/x86_64路径,找到mod_wl_22.so文件将文件复制到/usr/local/apache/modules目录2、配置httpd.confA、编辑Apache配置文件:[***********************.17]#vi/usr/local/apache/conf/httpd.confB、加载weblogic_module配置输入/LoadModule后回车,找到下面文本中的黑色字体部分,并添加黄色标记的语句:# LoadModule foo_module modules/mod_foo.soLoadModule weblogic_module modules/mod_wl_22.soC、配置监听端口#Listen 12.34.56.78:80Listen 9085D、配置分发节点IP及端口httpd.conf文件末尾添加如下语句,标红部分为分发节点IP和端口配置(需根据具体需要自行调整)四、重启apache服务[***********************.17]#/usr/local/apache/bin/apachectlrestart五、常见问题1、ntax error on line 202 of /etc/httpd/conf/httpd.conf: Cannot load/etc/httpd/modules/mod_wl_22.so into server: libstdc++.so.5: cannotopen shared object file: No such file or directory(modules是链接形式才出现)解决办法:安装compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm程序A、将compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm拷贝至/data/soft-installerB、cd /data/soft-installerC、rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm六、注意事项1、httpd.conf文件中配置的监听端口不能冲突2、httpd.conf 末尾添加语句,配置节点信息,需要配置成对应的IP和端口信息。
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集群安装手册(一)部署计划:
主控domain AdminServer
应用 domain slave1
应用 domain slave2
(二)创建主控域
运行$weblogic_home/common/bin/
1、默认创建新的域
2、选择默认模版
3、默认选择创建基本的域
4、调整域的名称,直接名称
5、默认域创建目录
6、设置weblogic用户和密码
7、选择weblogic的启动模式,我这里选择的是生产模式
8、选择jdk
9、选择安装集群
10、添加托管节点
11、配置集群
因为集群是通过广播(有unicast和multicast两种)来同步集群中的节点,并且把每个节点中的session通过这个广播地址来进行复制和同步,即主控域不断的时时刻刻的会和它下面的子节点间保持通讯、经常去询问各个子节点的。
集群信息传送模式:有unitcast与multicast两种,在11G版本前都是multicast10G后开始支持unicast协议。
如果指定了multicast,就必须指定一个“多点传送地址”。
以下采用multicast方式,地址采用默认的,端口使用6060:
12、关联集群与节点
13、由于我们采取IP形式,不在这里指定计算机名,直接下一步,并创建域
(三)创建节点(分别在、创建)
1 – 3、和创建主控域一样
4、调整域的名称为domain_7001
5 - 8、和创建主控域一样
9、创建一般的应用域
10、修改域名称和端口相关信息,并创建域
(四)启动集群
1、进入域目录启动主控weblogic
输入(第6步设置的用户名密码) 用户名weblogic,密码weblogic123
2、设置免密码登录,在AdmiServer下面创建security文件夹,里边包含文件。
内容
为:username=weblogic,password=weblogic123。
设置好后下次启动就不需要输入用户名和密码了
3、访问控制台(注意要设置防火墙,开发对应的端口),由于控制台默认端口是7001,
需要登录控制台修改端口为6060.
4、启动节点(需要先启动主控weblogic再启动节点,注意顺序)
①/home/weblogic/Oracle/Middleware/user_projects/domains/domain_7001/bin/ "slave1"
启动时遇到以下错误,查询weblogic官网的解释是存在BUG.需要在JAVA_OPTIONS加入“但
是加完后,并没有作用。
后来将主控域的
/home/weblogic/Oracle/Middleware/user_projects/domains/domain_6060/security/
拷贝到各节点的域security/就解决了
②再启动遇到以下问题,官网解释还是BUG.
( 需要在JAVA_OPTIONS加入“这次是真解决了。
启动好以后,控制台如下:。