Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Tomcat 7 as Service on Windows Server 2008

I want to install my tomcat v7.0.12 as a service on my Windows 2008 Server. On the tomcat page I found this tutorial. But there isn't a service.bat file in my installation dir.

In the service overview of WS2008 it isn't possible easily create a new service like new->service ...

like image 798
mybecks Avatar asked May 07 '11 08:05

mybecks


People also ask

Does Tomcat run as a service?

Tomcat service applicationTomcat8 is a service application for running Tomcat 8 as a Windows service.

How do I download and install Tomcat 7?

Download and Install TomcatGo to http://tomcat.apache.org/download-70.cgi then go to the Binary Distribution/Core/ and download the "zip" package (for example "apache-tomcat-7.0. 40. zip", about 8MB). Now unzip the downloaded file into a directory of our choice.


1 Answers

To Start Tomcat7 Service :

  • Open cmd, go to bin directory within "Apache Tomcat 7" folder. You will see some this like C:\..\bin>

  • Enter above command to start the service: C:\..\bin>service.bat install. The service will get started now.

  • Enter above command to start tomcat7w monitory service. If you have issue with starting the tomcat7 service then remove the service with command : C:\..\bin>tomcat7 //DS//Tomcat7

  • Now the service will no longer exist. Try the install command again, now the service will get installed and started: C:\..\bin>tomcat7w \\MS\tomcat7w

  • You will see the tomcat 7 icon in the system tray. Now, the tomcat7 service and tomcat7w will start automatically when the windows get start.

like image 68
Sunil Avatar answered Sep 23 '22 12:09

Sunil