install WebLogic server as a windows service

save following script to a bak file -> update the info inside -> run it

 

 

FYI: http://weblogic-wonders.com/weblogic/2011/02/01/weblogic-as-a-windows-service/

 

install script:

 

SETLOCAL
set DOMAIN_NAME=my_domain
set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\my_domain
set SERVER_NAME=AdminServer
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
set WLS_USER=weblogic
set WLS_PW=admin123
REM in production mode, cannot enable "Automatically Acquire Lock and Activate Changes" feature
set PRODUCTION_MODE=false
set MEM_ARGS=-Xms512m –Xmx512m
call "%WL_HOME%\server\bin\installSvc.cmd"
ENDLOCAL
 

 

uninstall script:

 

echo off
SETLOCAL
set DOMAIN_NAME=my_domain
set SERVER_NAME=AdminServer
set WL_HOME=C:\Oracle\Middleware\wlserver_10.3
call "%WL_HOME%\server\bin\uninstallSvc.cmd"
ENDLOCAL

你可能感兴趣的:(Weblogic Server)