Methods Tomcat, Weblogic, Jboss registration services under Windows

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

The software version number in this experiment use instructions:

Table 1 the software version description

Software name

The version number

Tomcat

6.0

JBoss

6.1

Weblogic

10.3

A, Tomcat

Windows Tomcat free installation of version made boot from the startup system service:

1, Configure the Java environment variable,

2, In windows, open a command line terminal, CD into the Tomcat root directory "\bin" path, as shown below:


Figure 1 CD to the Tomcat bin directory

3, The implementation of the "service.bat install" command in the current directory, see "The service 'Tomcat6' has been installed", the service is installed.

4, In the "start" input "services.msc", into a list of windows services, find a newly installed services, and then click the right mouse button, select "properties" in the pop-up dialog box, and then the "startup type" field is changed to "automatic", namely the service boot from the startup settings.


Fig. 2 service was installed successfully

Explain:

1, If you have installed the same name service, then the command line to remind the "designated service already exists".


Fig. 3 service is installed, the need to specify other service name

In this case, only when the execution, self designated as you can, that is executing the command into"service.batinstall myServiceName",

2, If you want to remove the installed Tomcat services, is required in the bin path Tomcat, enter the command "service.batremove myServiceName" can be, if the installer does not specify a name for the service, when deleting services also do not need to specify the service name, service name silent at this time that"Tomcat6".


Two, JBoss

Windows JBoss setup boot service

Online to find the JBoss setup boot service is to download a JavaService.exe., With the download link cannot access, Simply exploring the JBoss own installation service mechanism, Also found in the JBoss root directory "\bin" directory in a file called "service.bat", Guess that's services to install the shell script, Open the skimmed the function, This is it, Try it.

Installation: on the console terminal to the JBoss root directory "CD \bin" path, the implementation of "service.batinstall" command to start the installation, service, prompt "Service JBoss Application Server 6.1 installed", that was installed successfully.

Setting: in the "start" input "services.msc", into a list of windows services, find a newly installed services, and then click the right mouse button, select "properties" in the pop-up dialog box, and then the "startup type" field is changed to "automatic", namely the service boot from the startup settings.


Figure 4 JBoss service was installed successfully

Delete: with the installation, enter JBoss in the console bin directory, the implementation of "service.batuninstall", "Service JBoss Application Server 6.1removed," said deleted successfully.


Figure 5 JBoss service is uninstalled successfully

Three, Weblogic

Installation:

1, Find the path "Oracle\Middleware\wlserver_10.3\server\bin" under "installSvc.cmd", open the file, this configuration section in the following modification for the current Weblogic configuration, preservation

setWL_HOME=C:\Oracle\Middleware\wlserver_10.3

call"%WL_HOME%\common\bin\commEnv.cmd"

@rem ***************************************************************

@rem **************************************************************

@rem ***************************************************************

set DOMAIN_NAME=base_domain

set SERVER_NAME=AdminServer

set ERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\base_domain

set WLS_USER=tangjx

set WLS_PW=tangjx

@rem *****************************************************************

@rem *****************************************************************

2, Open the control terminal, CD to the "installSvc.cmd" directory, and then the implementation of "installSvc.cmd", see "beasvc base_domain_AdminServer installed", the Weblogic service is installed successfully.


Figure 6Weblogic service was installed successfully

Uninstall:

In the "" find "uninstallSvc.cmd" file, open, find, replace "%DOMAIN_NAME%_%SERVER_NAME%" for the Weblogic service name to uninstall, and then execute the file, can complete Weblogic service unloading.


Figure 7Weblogic successfully uninstalled

Attached to: Windows service universal unloading method

In the console terminal input "scdelete myServiceName" uninstall the name "myServiceName" service.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Lucine at December 19, 2013 - 7:56 PM