Weblogic10 domain automatically starts a service in Windows XP In the domain created in weblogic10, unlike 8.1, The installservice is not found in the domain directory. CMD command. WebLogic does not allow you to create Windows Services, but the command for creating services is placed in D:/bea10/wlserver_10.0/Server/bin. In this directory, two files are stored: beasvc.exe/beasvcx64.exe and installsvc. CMD/uninstallsvc. cmd. Open installsvc. CMD and you can see in the last line that the beasvc command is actually used.
"% Wl_home %/Server/bin/beasvc"-install-svcname: "beasvc % domain_name % _ % SERVER_NAME %"-javahome: "% java_home %"-execdir: "% userdomain_home %"-extrapath: "% extrapath %"-Password: "% wls_pw %"-using line: % using line % |
However, directly executing this command will create a "beasvc _" service in the service. This service cannot be started. We only need to set the environment variable corresponding to this command. To save trouble, add the following environment variables before the last line of the installation script:
Rem sets the domain name. Here is base_domainset domain_name = base_domainrem service name set SERVER_NAME = myserverrem sets homeset userdomain_home = D of the User Domain: /bea10/user_projects/domains/base_domainrem set password set wls_pw = weblogic |
Run the create service operation in the CMD window. The prompt is that the service name has been created. Check the service. The service has been created and can be started. After a while, you will be able to see the login page below, and check that there is no warning event in the event browser.
Weblogic10 domain Delete startup service in Windows XP In the uninstallsvc. CMD script, you can see that the script for deleting a service is very simple.
"% Wl_home %/Server/bin/beasvc"-Remove-svcname: "beasvc % domain_name % _ % SERVER_NAME %" |
We also use the above method to set environment variables.
Rem sets the domain name. Here is base_domainset domain_name = base_domainrem service name set SERVER_NAME = myerver |
Run the command in cmd. write by wonder 2007-7-3