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.