install Weblogic as windows service.

in windows, we can install weblogic as windows service.

(1)edit bea.home/wlserver_10.3/server/bin/installSvc.cmd

add :

rem 设置域的名字,这里是base_domain
set DOMAIN_NAME=wsc52
rem 服务名
set SERVER_NAME=AdminServer
rem 设置用户domain的home
set USERDOMAIN_HOME=D:\bea10\user_projects\domains\wsc52
rem 设置口令
set WLS_pw=weblogic
set JAVA_HOME=D:\bea10\jdk160_05

add in the final line, add

-log:"%USERDOMAIN_HOME%\stdout.log"

so , weblogic will print all wls log to this file.

 

(2)start this server, this server name is “beasvc wsc52_AdminServer”

you can start and stop this service with this command.

net start “beasvc wsc52_AdminServer” and net stop “beasvc wsc52_AdminServer”.

 

if you want do delete this service,use this:SC delete “beasvc wsc52_AdminServer”

你可能感兴趣的:(install Weblogic as windows service.)