How to manually install Tomcat as a system service under Windows

Source: Internet
Author: User
Tags tomcat apache tomcat

That is, in Windows, of course, we want to be able to put or manage software in an easy way. You may choose to install Tomcat by using the Setup program, but as a developer who is accustomed to downloading the zip package directly, there is no need to reinstall it, just a two-step process to manually complete the service installation.

First, we switch to the Tomcat\bin directory, we can find Service.bat, run the command "service install TOMCAT6" can install the service, and the service name is TOMCAT6. Well, the service is complete, and we can start it directly in the Windows Service Manager. Alternatively, we can start and configure Tomcat with Tomcat from the provided Tomcat monitor, and simply create a shortcut for Tomcat6w.exe, which is written as "D:\tomcat6\bin\tomcat6w.exe//ms// Tomcat6 ".

Run Service.bat install app_name to install Windows system services.

Run Service.bat remove App_name to adorn the Windows system service.

At the same time, this code helps to make our system services that customize other content.

REM 1, installing Tomcat services

E:tomcat in Tomcat.exe-install "Apache Tomcat 4.1" "E:tomcatjdk1.4jre inserverjvm.dll"-djava.class.path= "E:tomcat in   Ootstrap.jar "-dcatalina.home=" E:tomcat "-djava.endorsed.dirs=" e:omcatcommonendorsed "-start" Torg.apache.catalina.startup.bootstrapservice-params Start-stop Torg.apache.catalina.startup.BootstrapService- params stop-out "E:tomcatlogsstdout.log"-err "E:tomcatlogsstderr.log"

REM 2, start Tomcat service

net start "Apache Tomcat 4.1"

REM 3, stop Tomcat Service

net stop "Apache Tomcat 4.1"

REM 4, uninstall Tomcat service

E:tomcat in Tomcat.exe-uninstall "Apache Tomcat 4.1"

-----------------

If the file is not tomcat.exe in the Tomcat in directory, download a high version of Tomcat, such as 4.1.30, and of course you can also copy the high version of Tomcat.exe to the lower version of the bin directory and execute the batch above.

Related Article

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.