1.创建用户及组
groupadd -g 700 bea
useradd -u 700 -g bea -G dba weblogic -d /home/weblogic
passwd weblogic
2.创建安装目录
mkdir -p /oracle/product/9.2.0/bea/
chown -R weblogic:bea /oracle/product/9.2.0
3.配置环境变更
su - weblogic
vi ~/.profile
export WL_HOME=/oracle/product/9.2.0/bea/weblogic92
export JAVA_HOME=/usr/java/jdk1.5.0_15
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$WL_HOME/server/lib/weblogic.jar
export PATH=$JAVA_HOME/bin:$PATH:$WL_HOME/common/bin
注:weblogic92系列版本,使用JDK5,不可使用高版本
4.安装实施
export LANG=en_US
export DISPLAY=192.168.56.1:0.0
java -jar server923_generic.jar
5.创建domain
config.sh
------------------------------------
AdminServer192.168.56.101:7001
mserver1192.168.56.101:8001
mserver2192.168.56.102:8002
proxy 192.168.56.102:9001
------------------------------------
6.配置boot.properties文件
su - weblogic
cd /oracle/product/9.2.0/bea/user_projects/domains/base_domain
mkdir printlog
vi boot.properties
username=weblogic
password=weblogic
注:亦可将密码文件放置如下位置
/oracle/product/9.2.0/bea/user_projects/domains/base_domain/servers/proxy/security/boot.properties
7.编写启动脚本
1)节点一:
vi ~/startAdmin.sh
cd /oracle/product/9.2.0/bea/user_projects/domains/base_domain
./startWebLogic.sh >./printlog/admin_out.log &
vi ~/startMS1.sh
cd /oracle/product/9.2.0/bea/user_projects/domains/base_domain/bin
./startManagedWebLogic.sh mserver1 http://192.168.56.101:7001 >.././printlog/mserver1_out.log &
chmod 755 ~/*.sh
2)节点二:
vi ~/startMS2.sh
cd /oracle/product/9.2.0/bea/user_projects/domains/base_domain/bin
./startManagedWebLogic.sh mserver2 http://192.168.56.101:7001 >.././printlog/mserver2_out.log &
vi ~/startProsy.sh
cd /oracle/product/9.2.0/bea/user_projects/domains/base_domain/bin
./startManagedWebLogic.sh proxy http://192.168.56.101:7001 >.././printlog/proxy_out.log &
chmod 755 ~/*.sh
3)在各节点启动服务
su - weblogic
./startAdmin.sh &
./startMS1.sh &
./startMS2.sh &
./startProsy.sh &
4).登入控制台
http://192.168.56.101:7001/console
5)在各节点停止服务
ps -ef|grep java
kill -9 进程号