Installing Tomcat 6 on Fedora, Red Hat or CentOS

Install Tomcat using yum

# yum install tomcat6-webapps

Tomcat will get installed across the following directories

/etc/tomcat6             conf files     $CATALINA_HOME/conf
/usr/share/java/tomcat6  libs           $CATALINA_HOME/lib
/usr/share/tomcat6/bin   executables    $CATALINA_HOME/bin
/var/log/tomcat6         logs           $CATALINA_HOME/logs
/var/cache/tomcat6/temp  temp files     $CATALINA_HOME/temp
/usr/share/tomcat6       home directory $CATALINA_HOME
/var/lib/tomcat6/webapps web apps       $CATALINA_HOME/webapps
/var/cache/tomcat6/work  compiled stuff $CATALINA_HOME/work

Set CATALINA_HOME in /etc/profile

export CATALINA_HOME=/usr/share/tomcat6

Tomcat can be stopped, started and restarted using the following commands

# service tomcat6 stop
# service tomcat6 start
# service tomcat6 restart
Advertisements

6 thoughts on “Installing Tomcat 6 on Fedora, Red Hat or CentOS

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