资源描述
Linux环境下搭建WebLogic 10.3.6集群服务十步曲
(console模式)
版本说明
版本
日期
作者
说明
V1.0
2017-03-26
王林财
初稿
概要描述
WebLogic
wls1036_generic.jar
JDK
jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin
DataBase
11g
OS
Linux Redhat 6.5 64位
1. 安装前准备篇 3
1.1. 主机资源规划 3
1.2. 安装介质准备 3
2. 平台基础配置篇(双节点) 3
2.1. hosts文件配置 3
2.2. ulimit参数配置 3
2.3. Tcp默认连接超时时间配置 3
3. 用户及权限配置篇(双节点) 4
3.1. 新增weblogic组及用户 4
3.2. 修改目录所有者权限 4
4. 节点1安装篇 4
4.1. 安装jrockit jdk 4
4.1.1. 修改文件执行权限 4
4.1.2. 执行安装文件 4
4.1.3. 设置jrockit-jdk安装目录 4
4.1.4. 确认安装 5
4.1.5. 验证是否已安装成功 5
4.2. 安装Weblogic 5
4.2.1. 执行安装文件 5
4.2.2. 设置中间件安装主目录 5
4.2.3. 设置是否接收安全更新(不接收) 6
4.2.4. 选择安装内容(只安装Weblogic Server) 6
4.2.5. 选择JDK 8
4.2.6. 确认WebLogic安装目录 8
4.2.7. 验证是否已安装成功 10
5. 节点1配置篇 11
5.1. 新建应用domain域 11
5.1.1. 执行weblogic配置向导文件 11
5.1.2. 选择新建或者扩展域(选择新建) 11
5.1.3. 选择域控件或者模版(选择控件) 11
5.1.4. 选择应用模版(默认选择Basic WebLogic Server Domain) 12
5.1.5. 编辑域名称信息 12
5.1.6. 配置管理员用户及密码 12
5.1.7. 配置域模式(选择2生产模式) 13
5.1.8. 选择JDK(选择JRockit JDK) 13
5.1.9. 配置管理服务器 13
5.1.10. 创建域 15
5.1.11. 查看域创建日志,检查域是否创建成功 16
5.1.12. 启动域,验证管理服务器是否配置成功 16
5.1.13. IE登录域控制台 17
5.2. 环境参数配置 17
5.2.1. Java.security安全策略文件配置 18
5.2.2. 域内存参数配置 18
5.2.3. 域JAVA_OPTIONS参数配置 19
5.3. 管理服务器(AdminServer)配置 19
5.3.1. 密钥文件配置 19
5.3.2. 启动脚本配置 20
5.4. 计算机(Machine)配置 20
5.5. 应用集群(Cluster)配置 21
5.6. 节点管理器(nodemanager)配置 22
5.6.1. 配置startNodeManager.sh启动脚本 22
5.6.2. 设置管理服务器主机名验证为“无” 23
5.7. 被管理服务器(ManagedServer)配置 23
5.7.1. 服务器配置 23
5.7.2. 密钥文件配置 28
5.7.3. 启动脚本配置 28
6. 节点2安装配置篇 28
6.1. 拷贝节点1的jrockit jdk安装及配置 28
6.2. 拷贝节点1的weblogic安装及配置 28
6.3. 克隆节点1的被管理服务器配置 28
6.4. 移除节点2上的管理服务器启动脚本 30
6.5. 移除节点2上的服务启动日志信息 30
6.6. 修改节点2被管理服务器启动脚本 30
6.7. 配置节点2被管理服务器密钥文件 31
7. 部署篇 31
7.1. 数据源配置 31
7.1.1. 新建数据源 31
7.1.2. 数据源参数调优 35
7.2. 应用部署 37
7.2.1. 上传应用程序文件 37
7.2.2. 部署应用 37
8. 服务启动/查看状态/停止篇 41
8.1. 启动服务 41
8.1.1. 启动管理服务器 41
8.1.2. 启动节点服务器 42
8.1.3. 启动被管理服务器 43
8.2. 查看/停止服务 44
8.2.1. 查看/停止管理服务器 44
8.2.2. 查看/停止节点服务器 44
8.2.3. 查看/停止被管理服务器 44
9. 安全防护篇 45
9.1. Java反序列化安全漏洞修复 45
10. FAQ篇 46
10.1. 在weblogic控制台启动Server1时,报<BEA-000110> <Multicast socket receive error 46
1. 安装前准备篇
1.1. 主机资源规划
主机IP
主机名称
管理服务器及端口
被管理服务器及端口
10.140.30.51
po9kcfap901
AdminServer/7001
Server1/8080
10.140.30.52
po9kcfap902
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/domains/base_domain
2. 平台基础配置篇(双节点)
--以下三点,均通过root用户配置
2.1. hosts文件配置
双节点主机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. ulimit参数配置
--在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. Tcp默认连接超时时间配置
[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.ScriptExecutor 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.
5.1. 新建应用domain域
--注:只需在节点1上新建domain域
5.1.1. 执行weblogic配置向导文件
[weblogic@po9kcfap901 bin]$ /app/Oracle/Middleware/wlserver_10.3/common/bin/config.sh
Unable to instantiate GUI, defaulting to console mode.
<------------------- Fusion Middleware Configuration Wizard ------------------>
Welcome:
--------
5.1.2. 选择新建或者扩展域(选择新建)
展开阅读全文