linux下自启动设置方法:
1. 创建/etc/init.d/weblogic文件,文件内容如下:
#!/bin/bash
# chkconfig: 35 99 05
#description: Weblogic Server
#Please eidt the Variable
export BEA_BASE=/u02/weblogic/Oracle/Middleware
export BEA_HOME=$BEA_BASE/user_projects/domains/base_domain
export BEA_LOG=/var/log/weblogic.log
export PATH=$PATH:$BEA_HOME/bin
BEA_OWNER=weblogic
start(){
echo -n "starting weblogic..."
su - "$BEA_OWNER"<<EOO
$BEA_HOME/bin/startWebLogic.sh > $BEA_LOG 2>&1 &
EOO
}
stop(){
echo -n "stop weblogic..."
su - "$BEA_OWNER"<<EOO<