实战部署weblogic集群及发布应用(3)
-----构建weblogic高可用系列(共7篇)
服务器规划
本次搭建使用的虚拟机,由于内存有限,我搭建的是第一种规划方案同一台服务器,如下:
(1)主机信息
(2)集群信息
软件版本:
redhat6.4(64位)
jdk1.7.0_45.tar
wls1033_generic.jar
一、关闭selinux和防火墙
a. service iptables stop #关闭防火墙
b. setenforce 0 #临时关闭selinux
c. vi /etc/selinux/config #修改如下,永久关闭selinux,要重启
SELINUX=disabled
二、创建普通用户管理weblogic
groupadd app
mkdir /app
useradd -d /app/sinova -g app sinova
echo "sinova" | passwd --stdin sinova
三、安装JDK
a.解压、移动到/app/sinova/
tar fxjdk1.7.0_45.tar
mv jdk1.7.0_45 /app/sinova/
b.配置JDK、声明环境变量
vi .bash_profile //追加如下内容
JAVA_HOME=/app/sinova/jdk1.7.0_45
PATH=${JAVA_HOME}/bin:$PATH:$HOME/bin
export PATHJAVA_HOME
c.测试效果
执行:java-version
显示:
java version"1.7.0_45"
Java(TM) SERuntime Environment (build 1.7.0_45-b18)
JavaHotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
四、修改打开文件最大个数、最大进程数【root用户操作】
a.编辑 vi /etc/security/limits.conf //追加如下内容
* soft nofile 65535
* hard nofile 65535
sinova soft nproc 65535
sinova hard nproc 65535
b.校验
ulimit -a
五、修改 /etc/hosts 【追加上本机具体IP和127.0.0.1 对应本机主机名】
127.0.0.1 weblogic
192.168.101.166 weblogic
六、安装weblogic软件【安装目录 /app/sinova/oracle】
java -jar wls1033_generic.jar
Extracting 0%............................100%
#解压缩、提取文件
Enter [Exit][Next]> 回车
#默认就是Next
Enter new Middleware Home OR [Exit][Previous][Next]>/app/sinova/oracle #重新定义安装目录
"MiddlewareHome" = [/u02/weblogic]
Use above value or select another option:
1 - Enter newMiddleware Home
2 - Change todefault [/u02/weblogic/Oracle/Middleware]
Enter option number to select OR [Exit][Previous][Next]> 回车 #重新定义安装目录完毕,直接回车
Warning
/u02/weblogic directory is not empty. Proceed withinstallation?
Enter [Exit][Previous][Next]> 回车
#警告忽略
Provide your email address for security updates and to initiate configuration manager.
1|Email:[]
2|SupportPassword:[]
3|Receive SecurityUpdate:[Yes]
Enter index number to select OR [Exit][Previous][Next]> 3
#修改第3项,安全更新
Provide your email address for security updates and to initiate configuration manager.
"Receive Security Update:" = [Enternew value or use default "Yes"]
Enter [Yes][No]? No
#不接受,安全更新
** Do you wish tobypass initiation of the configuration manager and
** remain uninformed of critical security issuesin your configuration?
Enter [Yes][No]? Yes
#确认上面的操作
1|Email:[]
2|SupportPassword:[]
3|Receive SecurityUpdate:[No]
Enter index number to select OR [Exit][Previous][Next]> 回车
#上面操作的回显,直接回车
Select the type of installation you wish to perform.
->1|Typical
|Install the following product(s) andcomponent(s):
| - WebLogic Server
| - OracleCoherence
| - OracleEnterprise Pack for Eclipse
2|Custom
|Choose software products and components toinstall and perform optional
|configuration.
Enter index number to select OR [Exit][Previous][Next]> 直接回车
#第1个典型安装
<------ Oracle Installer - WebLogic 10.3.3.0------>
JDK Selection (Any * indicates Oracle Supplied VM):
-------------------------------------------------
JDK(s) chosen for use with this product installation will beinstalled. Supported defaults if not deselected will be used in scriptstring-substitution.
1|Add Local Jdk
2|/app/sinova/jdk1.7.0_45[x]
*Estimated size ofinstallation: 727.6 MB
Enter 1 to add or >= 2 to toggle selection OR [Exit][Previous][Next]>回车
#weblogic自己会找我们安装的jdk
<------ Oracle Installer - WebLogic 10.3.3.0------>
Choose Product Installation Directories:
-----------------------------------------------
Middleware Home Directory: [/app/sinova/Oracle]
Product Installation Directories:
1|WebLogic Server:[/app/sinova/Oracle/wlserver_10.3]
2|Oracle Coherence:[/app/sinova/Oracle/coherence_3.5]
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 Platform10.3.3.0
|_____WebLogicServer
| |_____Core Application Server
| |_____Administration Console
| |_____Configuration Wizard and UpgradeFramework
| |_____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
|_____OracleCoherence
|_____Coherence Product Files
*Estimated size ofinstallation: 727.7 MB
Enter [Exit][Previous][Next]> 直接回车
#默认
Feb 14, 2015 3:32:30 AMjava.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
<------ Oracle Installer - WebLogic 10.3.3.0------>
Installing files..
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 Complete
Congratulations! Installation is complete.
Press [Enter] to continue or type [Exit]> exit
#安装完毕,退出
<------ Oracle Installer - WebLogic 10.3.3.0------>
Clean up process in progress ...
到此为此,weblogic源码安装就结束了!
weblogic安装有2种方式:
a.图形方式(图形界面,很人性化,适合初学的朋友们)
b.字符方式(本文使用此种方式,速度比较快,节省资源,适合有基础的朋友们)
以上2种安装方式,请选择一种适合你的,就好了!