StopWeblogic.cmd内容:
@echo off
set JAVA_HOME=E:\bea\jdk142_08
set PLATFORMHOME=E:\bea\weblogic81
REM
REM BUG 11479 - Before ship, we should change this from FORCESHUTDOWN to SHUTDOWN!!!
REM Also, before ship, we should change the pointbase shutdown command
REM to 'SHUTDOWN' from 'SHUTDOWN force'
REM
set ARGUMENTS=weblogic.Admin SHUTDOWN -url t3://192.168.1.21:7001 -username admin -password 12345678
REM
REM Shutdown JDI Proxy
REM
REM set CLASSPATH=%PLATFORMHOME%serverlibdebugging.jar;%JAVA_HOME%libtools.jar
REM "%JAVA_HOME%\bin\java" -classpath "%CLASSPATH%" weblogic.debugging.engine.DbgMain -SHUTDOWN
REM
REM Shutdown WebLogic
REM
set CLASSPATH=%PLATFORMHOME%\server\lib\weblogic.jar
"%JAVA_HOME%\bin\java.exe" -cp "%CLASSPATH%" %ARGUMENTS%
echo "WEBLOGIC stoped"
只需要设置好路径,和用户密码。即可实现使用该脚本。