Menu

Showing posts with label Tomcat. Show all posts
Showing posts with label Tomcat. Show all posts

Sunday, July 24, 2011

Install tomcat in windows

  1. Download Tomcat from the below site. http://tomcat.apache.org/
  2. Set the following environment variables in the User or System variables.  See this article to set environment variables. How to set environment variables in windows?
    • JAVA_HOME = location of the JDK
    • CATALINA_HOME = Location of the Tomcat server
    • PATH = Add CATALINA_HOME\bin directory in the path variable
  3. Go to CATALINA_HOME\bin directory in the command prompt and run the startup.bat file.
  4. Run this http://localhost:8080/ URL in the browser to verify tomcat installation. By default tomcat will run on 8080 port.

     Related Articles:

     How to add Tomcat as a service in windows?
     How to change the Tomcat's default port no?

Saturday, July 9, 2011

How to add tomcat as a service in the windows OS?

1.       Go to the tomcat bin folder in the command prompt.
2.       Type service.bat install which will install tomcat as a service in the windows platform. The tomcat service name will be your tomcat version. Suppose if you installed tomcat 5.5.17 version, the service name would be tomcat5. Basically it will be taken from the service.bat file.



3.       To check tomcat service on Windows go to Control panel – Administrative Tools – Services



4.       Once you installed the service, you can run the tomcat by simply using the service name



How to change the Tomcat default port?

Hope you have installed the tomcat on your system.
The folder structure of the tomcat server is

1.       By default the tomcat server port is 8080.
2.       To change the port, edit the server.xml file in the conf folder.
3.       Search for “8080” and change it to the port number that you wish.

4.       Restart the tomcat server.
5.       To verify the changes, just type http://localhost:xxxx on your web browser where xxxx stands for the port no.