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

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

Linux环境下搭建WebLogic-10.3.6集群服务十步曲
Linux环境下搭建WebLogic 10.3.6集群服务十步曲
(console模式)
版本说明
版本日期作者说明
V1.0 2017-03-26 王林
初稿

概要描述
WebLo
wls1036_generic.jar
gic
JDK jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin
DataB
11g
ase
OS Linux Redhat 6.5 64位
1.安装前准备篇 (11)
4.1.3.设置jrockit-jdk安装目录
16
4.1.4.确认安装
17
4.1.
5.验证是否已安装成功
19
4.2.安装Weblogic
19
4.2.1.执行安装文件
19
4.2.2.设置中间件安装主目录
19
4.2.3.设置是否接收安全更新(不接
收) (20)
4.2.4.选择安装内容(只安装Weblogic
Server) (21)
4.2.
5.选择JDK
27
4.2.6.确认WebLogic安装目录
28
4.2.7.验证是否已安装成功
33
5.节点1配置篇 (36)
5.1.新建应用domain域
36
5.1.1.执行weblogic配置向导文件
36
5.1.2.选择新建或者扩展域(选择新
建) (36)
5.1.3.选择域控件或者模版(选择控
件) (37)
5.1.4.选择应用模版(默认选择Basic
WebLogic Server Domain) (39)
5.1.5.编辑域名称信息
40
5.1.
6.配置管理员用户及密码
41
5.1.7.配置域模式(选择2生产模式)
43
5.1.8.选择JDK(选择JRockit JDK)
44
5.1.9.配置管理服务器
44
5.1.10.创建域
50
5.1.11.查看域创建日志,检查域是否
创建成功 (51)
5.1.12.启动域,验证管理服务器是否
配置成功 (54)
5.1.13.IE登录域控制台
57
5.2.环境参数配置
57
5.2.1.Java.security安全策略文件配
置 (57)
5.2.2.域内存参数配置
58
5.2.3.域JAVA_OPTIONS参数配置
61
5.3.管理服务器(AdminServer)配置
62
5.3.1.密钥文件配置
63
5.3.2.启动脚本配置
63
5.4.计算机(Machine)配置
64
5.5.应用集群(Cluster)配置
66
5.6.节点管理器(nodemanager)配置
67
5.6.1.配置startNodeManager.sh启
动脚本 (67)
5.6.2.设置管理服务器主机名验证为
“无” (69)
5.7.被管理服务器(ManagedServer)配置
69
5.7.1.服务器配置
69
5.7.2.密钥文件配置
74
5.7.3.启动脚本配置
75
6.节点2安装配置篇 (76)
6.1.拷贝节点1的jrockit jdk安装及配置
76
6.2.拷贝节点1的weblogic安装及配置
76
6.3.克隆节点1的被管理服务器配置
76
6.4.移除节点2上的管理服务器启动脚本
78
6.5.移除节点2上的服务启动日志信息
79
6.6.修改节点2被管理服务器启动脚本
79
6.7.配置节点2被管理服务器密钥文件
80
7.部署篇 (81)
7.1.数据源配置
81
7.1.1.新建数据源
81
7.1.2.数据源参数调优
85
7.2.应用部署
87
7.2.1.上传应用程序文件
87
7.2.2.部署应用
87
8.服务启动/查看状态/停止篇 (92)
8.1.启动服务
92
8.1.1.启动管理服务器
92
8.1.2.启动节点服务器
95
8.1.3.启动被管理服务器
97
8.2.查看/停止服务
100
8.2.1.查看/停止管理服务器
100
8.2.2.查看/停止节点服务器
101
8.2.3.查看/停止被管理服务器
102
9.安全防护篇 (105)
9.1.Java反序列化安全漏洞修复
105
10.FAQ篇 (105)
10.1.在weblogic控制台启动Server1时,
报<BEA-000110> <Multicast socket receive error (105)
1.安装前准备篇
1.1.主机资源规划
主机IP 主机名
称管理服务器
及端口
被管理服
务器及端

10.140.3 0.51 po9kcfa
p901
AdminServer
/7001
Server1/
8080
10.140.3 0.52 po9kcfa
p902
Server2/
8080
双主机,配置为集群服务,其中管理服务器配置在第一个节点上,节点管理器使用默认的名称及端口。

1.2.安装介质准备
JDK,使用jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux -x64.bin
Weblogic,使用wls1036_generic.jar
1.3.安装路径规划
JDK安装路径,/app/jrockit-jdk
Weblogic安装路径,/app/Oracle/Middleware
域安装路径,/app/Oracle/Middleware/user_projects/do mains/base_domain
2.平台基础配置篇(双节点)
--以下三点,均通过root用户配置
2.1.h osts文件配置
双节点主机hosts文件,都加上两台主机名称与IP对应关系
[weblogic@po9kcfap901 ~]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.140.30.51 po9kcfap901
10.140.30.52 po9kcfap902
[weblogic@po9kcfap901 ~]$
2.2.u limit参数配置
--在limits.conf文件中增加nofile、nproc 参数配置
vi /etc/security/limits.conf
* soft nofile 102400
* hard nofile 102400
* soft nproc 102400
* hard nproc 102400
--注释90-nproc.conf文件里面*用户nproc 参数配置
vi /etc/security/limits.d/90-nproc.conf #* soft nproc 102400 2.3.T cp默认连接超时时间配置
[root@po9kcfap901 ~]# sysctl -w net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_fin_timeout = 30
[root@po9kcfap901 ~]#
3.用户及权限配置篇(双节点)
3.1.新增weblogic组及用户
[root@po9kcfap901 ~]# groupadd weblogic [root@po9kcfap901 ~]# useradd -g weblogic weblogic
3.2.修改目录所有者权限
[root@po9kcfap901 /]# chown -R weblogic:weblogic /app
[root@po9kcfap901 /]# chown -R weblogic:weblogic /msscpmis_app
4.节点1安装篇
4.1.安装jrockit jdk
4.1.1.修改文件执行权限
chmod a+x /home/weblogic/software/jrockit-jdk1.6.
0_45-R28.2.7-4.1.0-linux-x64.bin
4.1.2.执行安装文件
[weblogic@po9kcfap901
software]$ ./jrockit-jdk1.6.0_45-R28.2.
7-4.1.0-linux-x64.bin
Extracting
0%.....................................
.......................................
........................100%
Unable to instantiate GUI, defaulting to console mode.
<---------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.7 for Java SE 6 with JRMC 4.1
---------------------------------------->
Welcome:
--------
This installer will guide you through the installation of Oracle JRockit JDK R28.2.7 for Java SE 6 with JRMC 4.1. Type "Next" or enter to proceed to the next prompt. If you want to change data entered previously, type "Previous". You may quit the installer at any time by typing "Exit".
Enter [Exit][Next]>
4.1.3.设置jrockit-jdk安装目录
<---------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.7 for Java SE 6 with JRMC
4.1
---------------------------------------->
Choose Product Installation Directory:
--------------------------------------
"Product Installation Directory"
= [/app/jrockit-jdk]
Use above value or select another option:
1 - Enter new Product
Installation Directory
2 - Change to default
[/home/weblogic/jrockit-jdk1.6.0_45-R28
.2.7-4.1.0]
Enter option number to select OR [Exit][Previous][Next]>
4.1.4.确认安装
<---------------------------------------- Oracle JRockit Installer - Oracle
JRockit JDK R28.2.7 for Java SE 6 with JRMC
4.1
---------------------------------------
->
Installing JRE to /app/jrockit-jdk/jre...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[**********************************
*****************]
<---------------------------------------- Oracle JRockit Installer - Oracle JRockit JDK R28.2.7 for Java SE 6 with JRMC 4.1
---------------------------------------->
Installation Complete
Congratulations! Oracle JRockit JDK R28.2.7 for Java SE 6 with JRMC 4.1 has been successfully installed to /app/jrockit-jdk.
Press [Enter] to continue or type [Exit]>
<---------------------------------------- Oracle JRockit Installer - Oracle
JRockit JDK R28.2.7 for Java SE 6 with JRMC
4.1
---------------------------------------->
Clean up process in progress ...
[weblogic@po9kcfap901 software]$
4.1.
5.验证是否已安装成功
[weblogic@po9kcfap901
bin]$ /app/jrockit-jdk/bin/java -version java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Oracle JRockit(R) (build R28.2.7-7-155314-1.6.0_45-20130329-0641 -linux-x86_64, compiled mode)
[weblogic@po9kcfap901 bin]$
4.2.安装Weblogic
4.2.1.执行安装文件
[weblogic@po9kcfap901 software]$ java -jar wls1036_generic.jar
4.2.2.设置中间件安装主目录
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Middleware Home Directory:
---------------------------------
"Middleware Home" = [/app/Oracle/Middleware]
Use above value or select another option:
1 - Enter new Middleware Home
2 - Change to default
[/home/weblogic/Oracle/Middleware]
Enter option number to select OR [Exit][Previous][Next]> Next
4.2.3.设置是否接收安全更新(不接收)
--注:输入3,回车;再输入No,回车;
最后再输入Yes,确认不接收,回车
<-------------------- Oracle
Installer - WebLogic 10.3.6.0 ------------------->
Register for Security Updates:
------------------------------
Provide your email address for security updates and to initiate configuration manager.
1|Email:[]
2|Support Password:[]
3|Receive Security Update:[Yes]
Enter index number to select OR [Exit][Previous][Next]> 3
4.2.4.选择安装内容(只安装Weblogic Server)
--注:输入2,回车;再输入2,回车;
最后再输入Next,只安装WeLogic Server <-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
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
2|Custom
| Choose software products and components to install and perform optional
|configuration.
Enter index number to select OR [Exit][Previous][Next]> 2
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Products and Components:
-------------------------------
Release 10.3.6.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]
*Estimated size of installation: 690.2 MB
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Products and Components:
-------------------------------
Release 10.3.6.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] x
| |_____Evaluation Database [1.12] x
|_____Oracle Coherence [2]
|_____Coherence Product Files [2.1]
|_____Coherence Examples [2.2]
*Estimated size of installation: 744.7 MB
Enter number exactly as it appears in brackets to toggle selection OR
[Exit][Previous][Next]>
4.2.
5.选择JDK
--注:输入1,回车;输入/app/jrockit-jdk,回车;再输入2,把操作系统默认安装的JDK 取消勾选
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------
JDK(s) chosen will be installed.
Defaults will be used in script string-substitution if installed.
1|Add Local Jdk
2|/usr/lib/jvm/java-1.7.0-openjdk-1.7.0 .45.x86_64[ ]
3|/app/jrockit-jdk[x]
*Estimated size of installation: 744.7 MB
Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]> Next
4.2.6.确认WebLogic安装目录
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Product Installation Directories:
----------------------------------------
Middleware Home Directory: [/app/Oracle/Middleware]
Product Installation Directories:
"WebLogic Server" = [Enter new value or use default
"/app/Oracle/Middleware/wlserver_10 .3"]
Enter new WebLogic Server OR [Exit][Previous][Next]> Next
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
The following Products and JDKs will be installed:
--------------------------------------------------
WebLogic Platform 10.3.6.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
|_____Server Examples
|_____Evaluation Database
*Estimated size of installation: 744.8 MB
Enter [Exit][Previous][Next]> Next
Mar 26, 2017 12:11:03 PM
java.util.prefs.FileSystemPreferences$1
run
INFO: Created user preferences directory.
<-------------------- Oracle
Installer - WebLogic 10.3.6.0
------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|--------
----|------------]
[**********************************
*****************]
Performing String Substitutions...
<-------------------- Oracle
Installer - WebLogic 10.3.6.0
------------------->
Configuring OCM...
0% 25% 50% 75% 100%
[------------|------------|--------
----|------------]
[**********************************
*****************]
Creating Domains...

Mar 26, 2017 12:11:35 PM [THREAD: runScript]
com.oracle.cie.domain.script.ScriptExec
utor output
INFO: succeed: close template
<-------------------- Oracle
Installer - WebLogic 10.3.6.0 ------------------->
Installation Complete
Congratulations! Installation is complete.
Press [Enter] to continue or type [Exit]>
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Clean up process in progress ...
[weblogic@po9kcfap901 bin]$
4.2.7.验证是否已安装成功
[weblogic@po9kcfap901 logs]$ cat /app/Oracle/Middleware/logs/log.txt Mar 26, 2017 12:11:10 PM -- install "WebLogic Platform" 10.3.6.0 at
/app/Oracle/Middleware
release 10.3.6.0 [Added]
|_____Common Infrastructure Engineering 7.4.0.0 [Added]
| |_____Uninstall [Added]
| |_____Patch Client [Added]
| |_____Patch Attachment Facility [Added]
| |_____Clone Facility [Added]
|_____WebLogic Server 10.3.6.0 [Added]
| |_____Core Application Server [Added]
| |_____Administration Console [Added]
| |_____Configuration Wizard and Upgrade Framework [Added]
| |_____Web 2.0 HTTP Pub-Sub Server [Added]
| |_____WebLogic SCA [Added]
| |_____WebLogic JDBC Drivers
[Added]
| |_____Third Party JDBC Drivers [Added]
| |_____WebLogic Server Clients [Added]
| |_____WebLogic Web Server Plugins [Added]
| |_____UDDI and Xquery Support [Added]
| |_____Server Examples [Added]
| |_____Evaluation Database [Added]
| |_____Workshop Code Completion Support [Added]
|_____Oracle Configuration Manager 10.3.5.0 [Added]
| |_____Data Collector [Added]
|_____Oracle Coherence 3.7.1.1 [Not Installed]
|_____Coherence Product
Files [Not Installed]
|_____Coherence Examples [Not Installed]
[weblogic@po9kcfap901 logs]$
5.节点1配置篇
5.1.新建应用domain域
--注:只需在节点1上新建domain域5.1.1.执行weblogic配置向导文件
[weblogic@po9kcfap901
bin]$ /app/Oracle/Middleware/wlserver_1
0.3/common/bin/config.sh
Unable to instantiate GUI, defaulting to console mode.
<------------------- Fusion Middleware Configuration Wizard ------------------>
Welcome:
--------
5.1.2.选择新建或者扩展域(选择新建)
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
| Use this option to add new components to an existing domain and modify |configuration settings.
Enter index number to select OR [Exit][Next]>
5.1.3.选择域控件或者模版(选择控件)
<------------------- Fusion Middleware 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]> Next
5.1.4.选择应用模版(默认选择Basic WebLogic
Server Domain)
<------------------- Fusion Middleware Configuration Wizard ------------------>
Application Template Selection:
-------------------------------
Available Templates
|_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
|_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2] |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next
5.1.5.编辑域名称信息
<------------------- Fusion Middleware Configuration Wizard ------------------>
Edit Domain Information:
------------------------
| Name | Value |
_|________|_____________|
1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]> Next
<------------------- Fusion Middleware Configuration Wizard ------------------>
Select the target domain directory for this domain:
---------------------------------------------------
"Target Location" = [Enter new value or use default
"/app/Oracle/Middleware/user_projects /domains"]
5.1.
6.配置管理员用户及密码
<------------------- Fusion Middleware Configuration Wizard ------------------>
Configure Administrator User Name 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| *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 Changes
Enter option number to select OR [Exit][Previous][Next]>
5.1.7.配置域模式(选择2生产模式)
<------------------- Fusion Middleware Configuration Wizard ------------------>
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
->1|Development Mode
2|Production Mode
Enter index number to select OR [Exit][Previous][Next]> 2
5.1.8.选择JDK(选择JRockit JDK)
<------------------- Fusion Middleware Configuration Wizard ------------------>
Java SDK Selection:
-------------------
->1|JRockit SDK 1.6.0_45 @ /app/jrockit-jdk
2|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> Next
5.1.9.配置管理服务器
<------------------- Fusion Middleware Configuration Wizard ------------------>
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]> Next
<------------------- Fusion Middleware Configuration Wizard
------------------>
Configure the Administration Server:
-----------------------------------
-
Each WebLogic Server domain must have
one Administration Server. The
Administration Server 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
<------------------- Fusion Middleware Configuration Wizard
------------------>
Configure the Administration Server:
-----------------------------------
-
Each WebLogic Server domain must have
one Administration Server. The
Administration Server 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 option number to select OR
[Exit][Previous][Next]> 2
Enter value for "Listen address" OR
[Exit][Previous][Next]> 10.140.30.51
<------------------- Fusion Middleware Configuration Wizard
------------------>
Configure the Administration Server:
-----------------------------------
-
Each WebLogic Server domain must have
one Administration Server. The
Administration Server is used to perform administrative tasks.
| Name | Value |
_|__________________|______________|
1| *Name: | AdminServer |
2| *Listen address: | 10.140.30.51
|
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 Changes
Enter option number to select OR [Exit][Previous][Next]>
5.1.10.创建域
--注:创建域等待时间可能会比较久,请耐心
等待
<------------------- Fusion Middleware Configuration Wizard
------------------>
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|--------。

相关文档
最新文档