weblogic 启动 sh

Share To Facebook Twitter

start.sh

 

#!/usr/bin/ksh

DATE=`date +%m%d`
LOGFILENAME=$HOME/log/re.$DATE.log
nohup $HOME/bin/starthup.sh >> $LOGFILENAME &

 

 

starthup.sh

 

#!/usr/bin/ksh

WL_HOME=/bea/weblogic8.1
PATH=/usr/java14/bin:$PATH
JAVA_HOME=/usr/java14
PRE_CLASSPATH=/app/recis/antlr-2.7.6rc1.jar
QNAME=/app/recis/qname.jar
# 设置classpath   
CLASSPATH=$QNAME:/app/recis/libmuxer.so:/app/recis/ojdbc14.jar:$PRE_CLASSPATH:$WL_HOME/server/lib/weblogic_sp.jar:$WL_HOME/server/lib/weblogic.jar:$WL_HOME/server/lib/jaxen-1.1.1.zip:$WL_HOME/server/lib/jdom-1.0.jar:$WL_HOME/server/lib/jce1_2_1.jar:$WL_HOME/server/lib/local_policy.jar:$WL_HOME/server/lib/sunjce_provider.jar:$WL_HOME/server/lib/US_export_policy.jar:$WL_HOME/server/lib/mysql.jar:$WL_HOME/server/lib/classes12.zip:$WL_HOME/server/lib/xercesImpl.jar:$WL_HOME/server/lib/xml4j.jar:$WL_HOME/server/lib/activation.jar:$WL_HOME/server/lib/ws4cube-api.jar:$WL_HOME/server/lib/xalan.jar:$WL_HOME/server/lib/db2java.zip:$WL_HOME/server/lib/db2jcc.jar:$WL_HOME/server/lib/ess_japi.jar:$WL_HOME/server/lib/msbase.jar:$WL_HOME/server/lib/mssqlserver.jar:$WL_HOME/server/lib/msutil.jar:$WL_HOME/server/lib/Commons-collections.jar:$WL_HOME/server/lib/commons-pool.jar:/usr/java14/lib/tools.jar

# JAVA Options
JAVA_OPTIONS="$JAVA_OPTIONS -Xbootclasspath/p:$WL_HOME/server/lib/xalan.jar:$WL_HOME/server/lib/xml-apis.jar -Dbi3.Home=$HOME/WebLogic/config"
JAVA_VM=""
MEM_ARGS="-Xms1024m -Xmx1024m"
# Weblogic启动目录
WL_CONFIG=$HOME/wlconfig

#Weblogic Options 
SERVER_NAME=BranchServer
# 设置是以生产模式启动还是以开发模式启动
PRODUCTION_MODE=n

# 启动
cd $WL_CONFIG

ulimit -n 10000

$JAVA_HOME/bin/java -Druntype=RECIS -classpath $CLASSPATH /
 $JAVA_VM $MEM_ARGS $JAVA_OPTIONS /
 -Dweblogic.Name=$SERVER_NAME -Dbea.home=$WL_HOME /
 -Djava.library.path=$WL_HOME/server/lib/aix:/usr/mqm/java/lib:/usr/mqm/lib:/app/recis/cfca//
 -Dweblogic.management.username=$WLS_USER /
 -Dweblogic.wtc.TraceLevel=100000 /
 -Dweblogic.management.password=$WLS_PW /
 -Djava.security.policy="$WL_HOME/server/lib/weblogic.policy"/
 -Dweblogic.ProductionModeEnabled=$PRODUCTION_MODE /
 -Djava.awt.headless=true /
 -Dfile.encoding=GBK weblogic.Server

 

(责任编辑:IT)

发表评论