Adding Tomcat to a service

Source: Internet
Author: User
Tags apache tomcat
Be sure to start the cmd DOS window in the administrator's capacity
How to add the uncompressed version of Tomcat to Windows System Services-reprinted 2009-06-12 11:31tomcat/bin directory has a service.bat file, edit this file can see the head of the note:
REM---------------------------------------------------------------------------
REM NT Service install/uninstall Script
Rem
REM Options
REM Install install the service using TOMCAT5 as service name.
REM Service is installed using default settings.
REM Remove the service from the System.
Rem
REM name (optional) If The second argument is present it is considered
REM To is new service name
Rem
REM $Id: service.bat,v 1.5.2.1 2004/08/23 22:54:32 MTurk EXP $
REM---------------------------------------------------------------------------
Visible Executive Service install can be joined to the system services, while the implementation of the service remove can remove system services name is the service name, such as the implementation of "service install tomcat555" then the system services added service name is " Apache Tomcat tomcat555 "also write" service remove tomcat555 when you remove it so you can add a few Tomat on your server to the system service.
Note: The REM command is a "comment" Command for batch processing



Register the uncompressed version of the TOMCAT6 as a service and set up a self starter
First of all, in the beginning-> run to knock cmd, into the MS-DOS interface


CD to Tomcat's Bin directory


Run Command Service install


You can register tomcat as a system service.


Delete Service Run


The service uninstall will be all right.




Of course, this registered service startup type is manual, and if you want to set up to boot automatically, you need to modify


Service.bat files in Bin directory


Open this file, at the bottom of the third line of the output of the sentence


echo the service '%service_name% ' has been installed.


This is the output service installation success, before this add a sentence


sc config%service_name% start= auto


OK, after the boot, the Tomcat service will start automatically.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.