Download Appache tomcat from below location
http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.36/bin/
I used 5.5 for installation. Latest version is available for download
Create a RHEL 6 server with packages for software development and Webserver in
it. Redhat provides an option to choose the type of installation you require.
Check below prerequisites are available before installation
Requirements:
APR 1.2+ development headers (libapr1-dev package)
OpenSSL 0.9.7+ development headers (libssl-dev package)
JNI headers from Java compatible JDK 1.4+
GNU development environment (gcc, make)
JRE
if you choos the right installation as mentioned above, all the prerequisites
except JRE will be available in the system.
JRE installation
Search for Java SE Downloads in oracle site and download JRE from the site as
below
http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-
2133155.html
(Above link might change in later course of time)
I downloaded the below version
O/S Size File
Linux x86 40.47 MB jre-8u20-linux-i586.rpm
Install the rpm using
rpm -ivh jre-8u20-linux-i586.rpm
After installation of the RPM
use the below command to set the Java Home
export JAVA_HOME=”/usr/java/jre1.8.0_20″
Go to the folder in which tomcat is decompressed
find the following file and run the command
/home/apache-tomcat-5.5.36/bin/startup.sh
# /home/apache-tomcat-5.5.36/bin/startup.sh
Using CATALINA_BASE: /home/apache-tomcat-5.5.36
Using CATALINA_HOME: /home/apache-tomcat-5.5.36
Using CATALINA_TMPDIR: /home/apache-tomcat-5.5.36/temp
Using JRE_HOME: /usr/java/jre1.8.0_20
Using CLASSPATH: /home/apache-tomcat-5.5.36/bin/bootstrap.jar
go to browser and check
http://localhost:8080/
Bingo!!!!
it should be working