把weblogic配置成服务启动,保存cmd格式

创建weblogic服务的cmd脚本:
@echo off
SETLOCAL
set DOMAIN_NAME=dhl_domain
set USERDOMAIN_HOME=D:\Oracle\Middleware\user_projects\domains\dhl_domain
set SERVER_NAME=AdminServer
set WLS_USER=weblogic11g
set WLS_PW=weblogic11g
set PRODUCTION_MODE=true
set JAVA_VENDOR=Sun
set JAVA_HOME = "D:\jdk1.6.0_10"
set JAVA_OPTIONS=-Dweblogic.Stdout="cout_live_dhl.txt" -Dweblogic.Stderr="D:\Oracle\Middleware\user_projects\domains\dhl_domain\error_live_dhl.txt"
set MEM_ARGS=-Xms512m -Xmx1024m -XX:MaxPermSize=512m -XX:PermSize=256m -verbose:gc -Xloggc:c:/wlog.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
call "D:\Oracle\Middleware\wlserver_10.3\server\bin\installSvc.cmd"
ENDLOCAL
pauses

删除weblogic服务的cmd脚本:
echo off
SETLOCAL
set DOMAIN_NAME=dhl_domain
set SERVER_NAME=AdminServer
call "D:\Oracle\Middleware\wlserver_10.3\server\bin\uninstallSvc.cmd"
ENDLOCAL
pause

你可能感兴趣的:(java,oracle,weblogic,脚本,sun)