As a pre-requisite for the installation of Tomcat , you need to have Java installed. Check my previous post for the detailed instruction for the Java Installation and setting up the necessary environment variables for the Java to work.
- Download the Tomcat Installation file
[root@localhost tomcat]# mkdir -p /usr/tomcat
[root@localhost tomcat]# cd /usr/tomcat/
root@localhost tmp]# wget https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz
--2014-04-01 01:32:13-- https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz
Resolving archive.apache.org... 192.87.106.229, 140.211.11.131, 2001:610:1:80bc:192:87:106:229
Connecting to archive.apache.org|192.87.106.229|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7831716 (7.5M) [application/x-gzip]
Saving to: `apache-tomcat-7.0.39.tar.gz'
100%[===================================================================================================================================================================================================>] 7,831,716 86.6K/s in 79s
2014-04-01 01:33:33 (97.3 KB/s) - `apache-tomcat-7.0.39.tar.gz' saved [7831716/7831716]
[root@localhost tmp]# du -sh apache-tomcat-7.0.39.tar.gz
7.5M apache-tomcat-7.0.39.tar.gz
- Extract the tar file to install the Tomcat
[root@localhost tomcat]# tar -zxvf /tmp/apache-tomcat-7.0.39.tar.gz
[root@localhost java]# cd /usr/tomcat/apache-tomcat-7.0.39/bin
[root@localhost bin]# ls -ltr
total 796
-rw-r--r-- 1 root root 28615 Mar 22 2013 bootstrap.jar
-rw-r--r-- 1 root root 13217 Mar 22 2013 catalina.bat
-rwxr-xr-x 1 root root 19276 Mar 22 2013 catalina.sh
-rw-r--r-- 1 root root 2121 Mar 22 2013 catalina-tasks.xml
-rw-r--r-- 1 root root 24281 Mar 22 2013 commons-daemon.jar
-rw-r--r-- 1 root root 202451 Mar 22 2013 commons-daemon-native.tar.gz
-rw-r--r-- 1 root root 2131 Mar 22 2013 configtest.bat
-rwxr-xr-x 1 root root 1982 Mar 22 2013 configtest.sh
-rw-r--r-- 1 root root 1342 Mar 22 2013 cpappend.bat
-rwxr-xr-x 1 root root 7492 Mar 22 2013 daemon.sh
-rw-r--r-- 1 root root 2178 Mar 22 2013 digest.bat
-rwxr-xr-x 1 root root 2021 Mar 22 2013 digest.sh
-rw-r--r-- 1 root root 3264 Mar 22 2013 setclasspath.bat
-rwxr-xr-x 1 root root 3524 Mar 22 2013 setclasspath.sh
-rw-r--r-- 1 root root 2111 Mar 22 2013 shutdown.bat
-rwxr-xr-x 1 root root 1960 Mar 22 2013 shutdown.sh
-rw-r--r-- 1 root root 2112 Mar 22 2013 startup.bat
-rwxr-xr-x 1 root root 1961 Mar 22 2013 startup.sh
-rw-r--r-- 1 root root 38161 Mar 22 2013 tomcat-juli.jar
-rw-r--r-- 1 root root 288166 Mar 22 2013 tomcat-native.tar.gz
-rw-r--r-- 1 root root 4114 Mar 22 2013 tool-wrapper.bat
-rwxr-xr-x 1 root root 5086 Mar 22 2013 tool-wrapper.sh
-rw-r--r-- 1 root root 2116 Mar 22 2013 version.bat
-rwxr-xr-x 1 root root 1965 Mar 22 2013 version.sh
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/tomcat/apache-tomcat-7.0.39
Using CATALINA_HOME: /usr/tomcat/apache-tomcat-7.0.39
Using CATALINA_TMPDIR: /usr/tomcat/apache-tomcat-7.0.39/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/tomcat/apache-tomcat-7.0.39/bin/bootstrap.jar:/usr/tomcat/apache-tomcat-7.0.39/bin/tomcat-juli.jar
[root@localhost bin]# ps -ef | grep tomcat
root 2145 1 9 05:35 pts/1 00:00:02 /usr/bin/java -Djava.util.logging.config.file=/usr/tomcat/apache-tomcat-7.0.39/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/tomcat/apache-tomcat-7.0.39/endorsed -classpath /usr/tomcat/apache-tomcat-7.0.39/bin/bootstrap.jar:/usr/tomcat/apache-tomcat-7.0.39/bin/tomcat-juli.jar -Dcatalina.base=/usr/tomcat/apache-tomcat-7.0.39 -Dcatalina.home=/usr/tomcat/apache-tomcat-7.0.39 -Djava.io.tmpdir=/usr/tomcat/apache-tomcat-7.0.39/temp org.apache.catalina.startup.Bootstrap start