编写一个bat文件,内容如下: echo off SETLOCAL set DOMAIN_NAME=ManagedServer1_domain set USERDOMAIN_HOME=C:/bea/user_projects/domains/ManagedServer1_domain set SERVER_NAME=ManagedServer1 set PRODUCTION_MODE=true set JAVA_OPTIONS=-Dweblogic.Stdout="c:/ServiceLOG/domains/cluster_domain/ManagedServer1_stdout.txt" -Dweblogic.Stderr="c:/ServiceLOG/domains/cluster_domain/ManagedServer1_stderr.txt" set ADMIN_URL=192.168.1.189:8001 set WLS_USER=weblogic set WLS_PW=weblogic set MEM_ARGS=-Xms1024m -Xmx1024m call "c:/bea/weblogic92/server/bin/installSvc.cmd" ENDLOCAL 并执行此文件,即可。 当然也可以从Service中删除: echo off SETLOCAL set DOMAIN_NAME=ManagedServer1_domain set USERDOMAIN_HOME=C:/bea/user_projects/domains/ManagedServer1_domain set SERVER_NAME= ManagedServer1 call "c:/bea/weblogic92/server/bin/uninstallSvc.cmd" ENDLOCAL