以下方法成功实施于Red Hat Enterprise Linux Server release 5.3 (Tikanga)服务器上部署的weblogic服务(版本816)
步骤:
1、创建weblogic启动文件
root用户登录执行命令
[root@test init.d]# cd /etc/rc.d/init.d/
[root@test init.d]# vi weblogic
将以下脚本复制到weblogic文件中:
#!/bin/bash
# chkconfig: 345 20 80
# description: Weblogic Server auto start/stop script.
# /etc/rc.d/init.d/weblogic
# Please edit the variable
export BEA_BASE=/opt/bea
export BEA_HOME=$BEA_BASE/user_projects/domains/rcis2
export BEA_LOG=$BEA_HOME/weblogic.log
export PATH=$PATH:$BEA_HOME
BEA_OWNR="oracle"
# if the executables do not exist -- display error
if [ ! -f $BEA_HOME/startWebLogic.sh -o ! -d $BEA_HOME ]
then
echo "WebLogic startup: cannot start"
exit 1
fi
# depending on p