自定义weblogic应用启动停止脚本

[bea1@linux103 base_domain]$ tail -300 midplat_start.sh 
nohup sh /home/bea1/base_domain/startWebLogic.sh >nohup.out 2>&1 &
tail -f nohup.out

[bea1@linux103 base_domain]$ tail -300 stopMidplat.sh 
kill -9 `ps -ef|grep weblogic|grep bea1|grep -v grep|awk '{print $2}'`[bea1@linux103 base_domain]$ 

[bea1@linux103 base_domain]$ ps -ef|grep weblogic|grep bea1
bea1      7018  6980  0 17:42 pts/1    00:00:00 grep weblogic
bea1     25618 25580  0 Aug15 ?        00:07:04 /usr/java/jdk1.5.0_19/bin/java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms4g -Xmx4g -XX:PermSize=1g -XX:MaxPermSize=1g -XX:CompileThreshold=8000 -XX:PermSize=1g -XX:MaxPermSize=4g -Xverify:none -Xverify:none -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dfile.encoding=GBK -Dibm.stream.nio=true -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dfile.encoding=GBK -Dibm.stream.nio=true -Xverify:none -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dfile.encoding=GBK -Dibm.stream.nio=true -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/beaadmin/bea/patch_weblogic923/profiles/default/sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.security.policy=/home/beaadmin/bea/weblogic92/server/lib/weblogic.policy weblogic.Server

[bea1@linux103 base_domain]$ ps -ef|grep weblogic|grep bea1|grep -v grep|awk '{print $2}'
25618

猜你喜欢

转载自java-frog.iteye.com/blog/1932230