---
title: "install WebLogic server as a windows service"
author: "mcqueen"
date: "2012-11-02T14:50:21Z"
tags: []
categories: ["研发管理"]
slug: "install-weblogic-server-as-a-windows-service"
draft: false
lastmod: "2012-11-02T14:52:01Z"
id: 1714474
url: "https://mcqueen.iteye.com/blog/1714474"
---

save following script to a bak file -&gt; update the info inside -&gt; run it

 

 

FYI: [http://weblogic-wonders.com/weblogic/2011/02/01/weblogic-as-a-windows-service/](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
```