操作系统:redhat6.4(64位)
JDK:jdk1.7.0_45.tar
weblogic:wls1033_generic.jar
本次搭建使用的虚拟机,由于内存有限:我搭建的是同一台服务器,1个管理节点,2个被管理节点
一、关闭selinux和防火墙
service iptables stop //关闭防火墙
setenforce 0 //临时关闭selinux
vi /etc/selinux/config //永久关闭,要重启
将SELINUX=enforcing改为SELINUX=disabled
二、创建普通用户管理weblogic
groupadd app
mkdir /app
useradd -d /app/sinova -g app sinova
echo "sinova" | passwd --stdin sinova
三、安装JDK
1、解压、移动到/app/sinova/
tar fxjdk1.7.0_45.tar
mv jdk1.7.0_45 /app/sinova/
2、配置JDK【声明环境变量】
vi .bash_profile
# .bash_profile
# Get the aliasesand functions
if [ -f~/.bashrc ]; then
. ~/.bashrc
fi
# User specificenvironment and startup programs
JAVA_HOME=/app/sinova/jdk1.7.0_45
PATH=${JAVA_HOME}/bin:$PATH:$HOME/bin
export PATHJAVA_HOME
3、测试效果
执行: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用户操作】
1、编辑 vi /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
sinova soft nproc 65535
sinova hard nproc 65535
2、校验
ulimit -a
五、修改 /etc/hosts 【追加上本机具体IP和127.0.0.1 对应本机主机名】
127.0.0.1 weblogic
192.168.101.166 weblogic
六、安装weblogic软件【sinova用户安装目录 /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]>
<-------------------- 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]> 直接回车
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 ...