UnixServerAdmin

Server Administration & Management

How to Install & Configure Tomcat Server

Tomcat is a Java Servlet container and web server from Jakarta project of Apache software foundation. A web server sends web pages as response to the requests sent by the browser client. In addition to the static web pages, dynamic web pages are also sent to the web browsers by the web server. Tomcat is sophisticated in this respect, as it provides both Servlet and JSP technologies. Tomcat provides a good choice as a web server for many web applications and also a free Servlet and JSP engine. Tomcat can be used standalone as well as behind other web servers such as Apache httpd.

The concepts of Tomcat Servlet Container.
– Tomcat Servlet Container is a servlet container. The servlets runs in servlet container.
– The implementation of Java Servlet and the Java Server Pages is performed by this container.
– Provides HTTP web server environment in order to run Java code.
– Reduces garbage collection
– Native Windows and Unix wrappers for platform integration

Process for Install and Configure Tomcat Server

1. Download apache-tomcat-7.0.16.tar.gz from Oracle Website

2. Abstract apache-tomcat-7.0.16.tar.gz folder

# tar -zvxf apache-tomcat-7.0.16.tar.gz

3. copy apache-tomcat-7.0.16 folder under /usr/local directory

# cp -rvdf apache-tomcat-7.0.16 /usr/local/

4. Start tomcat Server

# sh /usr/local/apache-tomcat-7.0.16/bin/startup.sh

5. Stop tomcat Server

# sh /usr/local/apache-tomcat-7.0.16/bin/shutdown.sh

6. Add following line in /etc/rc.local file, to start tomcat during botting prcocess

# vi /etc/rc.local

sh /usr/local/apache-tomcat-7.0.16/bin/startup.sh

#####################################################################
${tomcat_home} is the root directory of tomcat. Your Tomcat installation should have the following subdirectories:

${tomcat_home}conf – Where you can place various configuration files

${tomcat_home}webapps – Containing example applications

${tomcat_home}bin – Where you place web server plugins
######################################################################

Advertisements

September 18, 2011 - Posted by | Tomcat | ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: