Installing Apache Tomcat On Linux
Installing Apache Tomcat On Linux
Abbaq Nadeem
Page 1
Table of Contents
Installing Apache Tomcat on Linux ...................................................................................................................1 Installing Java Runtime Environment .........................................................................................................................3 Installing Java Runtime Environment .....................................................................................................................4 Installing Tomcat Software .........................................................................................................................................5 Starting/Stopping Tomcat ..................................................................................................................................6
Abbaq Nadeem
Page 2
Abbaq Nadeem
Page 3
Abbaq Nadeem
Page 4
Abbaq Nadeem
Page 5
Download the latest Tomcat 6.x version from http://tomcat.apache.org/download-60.cgi. For Debian I downloaded the Binary Core Distribution file apache-tomcat-6.0.18.tar.gz which was the latest version at the time of this writing. Once you downloaded the tar file make sure the MD5 checksum matches the value posted on Tomcat's web site, see http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat6.0.18.tar.gz.md5: # md5sum /tmp/apache-tomcat-6.0.18.tar.gz 8354e156f097158f8d7b699078fd39c1 /tmp/apache-tomcat-6.0.18.tar.gz Installing Tomcat from a binary release (tar file) requires manual creation of the Tomcat user account. This is not necessary if you install the Tomcat RPM package on a Linux system that supports RPMs.
Next I extracted the tar file to /var/lib and changed the ownership of all files and directories to tomcat: # cd /var/lib # tar zxvf /tmp/apache-tomcat-6.0.18.tar.gz # chown -R tomcat.tomcat /var/lib/apache-tomcat-6.0.18 The get the Tomcat version of the newly installed Tomcat, run: # /var/lib/apache-tomcat-6.0.18/bin/version.sh Using CATALINA_BASE: /var/lib/apache-tomcat-6.0.18 Using CATALINA_HOME: /var/lib/apache-tomcat-6.0.18 Using CATALINA_TMPDIR: /var/lib/apache-tomcat-6.0.18/temp Using JRE_HOME: /usr Server version: Apache Tomcat/6.0.18 Server built: Jul 22 2008 02:00:36 Server number: 6.0.18.0 OS Name: Linux OS Version: 2.6.18-6-amd64 Architecture: x86_64 JVM Version: 1.4.2 JVM Vendor: Free Software Foundation, Inc. #
Starting/Stopping Tomcat
Now try to startup the Tomcat server to see whether the default Tomcat home page is being displayed.
Abbaq Nadeem Page 6
Abbaq Nadeem
Page 7