How to install Tomcat6 Server on Centos6

How to install Tomcat6 Server on Centos6

Tomcat is an Opensource webserver and used for Java Servelet and JSP web applications. It is a product of Apache Foundation. It is like Apache HTTP Server. To run Tomcat Webserver in a linux server we need to install JAVA in that machine. In this tutorial I will show you how to install and configure JAVA and Apache Tomcat in a linux server

Cento's default repo has Tomcat6 available for install

yum install tomcat6 tomcat6-webapps tomcat6-docs-webapp tomcat6-admin-webapps

By default Tomcat6 will run over port 8080, and if yo are using this to serve your site, you will want to change this to port 80

vim /etc/tomcat6/tomcat6.conf

Look for #CONNECTOR_PORT="8080" and change it to CONNECTOR_PORT="80"

sed -i 's/#CONNECTOR_PORT="8080"/CONNECTOR_PORT="80"/g' /etc/tomcat6/tomcat6.conf 

Now lets start up Tomcat6

/etc/init.d/tomcat6 start

or

service tomcat6 start

Let make sure it starts on bootup

chkconfig tomcat6 on
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

OpenVPN Tutorial For Debian/Ubuntu on OpenVZ

What is OpenVPN?OpenVPN is a reliable and well tested VPN solution that is able to run over a...

Install Remi and EPEL yum repo Centos 7

Install Yum EPEL and Remi repositories on Centos 7 Adding additional useful repo's on Centos 6...

Setup logrotate to rotate your logs

Use logrotate to Manage Log Fiiles logrotate is a tool for managing log files created by...

Setup a SSH Tunnel for Secure Browsing

Setup a SSH Tunnel to Secure your Browsing on a Public Network Have you been sitting at your...

CentOS 7 KVM Template Disk Space Fix

NOTE: This ONLY applies to KVM VPS clients, not OpenVZAfter reinstalling your OS using the CentOS...