Thursday, May 9, 2013

Installing Tomcat as a Windows Service

Installing Tomcat as a Windows Service

Download Tomcat 7
http://tomcat.apache.org/download-70.cgi
Core -> 32-bit Windows zip


To install tomcat as a windows service
C:\java\apache-tomcat-7.0.39\bin>service install myTomcatServiceName

To uninstall tomcat as a windows service
C:\java\apache-tomcat-7.0.39\bin>service uninstall myTomcatServiceName


C:\java\apache-tomcat-7.0.39\bin>sc start myTomcatServiceName
C:\java\apache-tomcat-7.0.39\bin>sc stop myTomcatServiceName

C:\java\apache-tomcat-7.0.39\bin>tomcat7 //TS myTomcatServiceName


Command-Line Parameters for Tomcat6.exe

Here is an overview of the command line parameters available for use with Tomcat6.exe. The default syntax for all these commands is:

C:\>tomcat6 //COMMAND//Tomcat6<
If you configured a custom service name when you installed the service, use this in place of "Tomcat6" in the command.

    //IS// - Install service. Used during the initial installation only.
    //US// - Update service. Used to change service parameters after installation.
    //SS// - Stop Service. Stops the Tomcat Windows Service, if running.
    //RS// - Run Service. Manually start the Tomcat service from the command line.
    //TS// - Terminal Service. Runs the service as a console application. Tomcat6 runs this command by default if no other parameter is specified. This command can be used in conjunction with other parameters to provide debug functionality for the Tomcat service.
    //DS// - Delete Service - Stops the service if it is running, and then deletes it.


Command Documentation
http://www.mulesoft.com/tomcat-service
https://www.youtube.com/watch?v=pfZU66hzsQ0

No comments:

Post a Comment