/home/middleware/weblogic12/user_projects/domains/flowctrldomain5001路径下
创建start.sh 内容如下:
export USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"
export TMP_PATH="/home/middleware/weblogic12/user_projects/domains/flowctrldomain5001/lib"
export POST_CLASSPATH="${TMP_PATH}/ifxjdbc.jar:${TMP_PATH}/ifxjdbcx.jar"
export PRE_CLASSPATH="${TMP_PATH}/antlr-2.7.6.jar"
export PRE_CLASSPATH="${TMP_PATH}/slf4j-api-1.6.0.jar"
export JAVA_OPTIONS="${JAVA_OPTIONS} -Dfile.encoding=GBK -DenvironmenTypeCode=southProduct "
nohup ./bin/startWebLogic.sh &
sleep 1
tail -f nohup.out
关闭脚本如下:
stop.sh 内容如下:
./bin/stopWebLogic.sh
或者
ps -ef|grep managed_9002|grep -v grep|awk '{print "kill -9 " $2}' | sh