Installing Tomcat in Red-hat Linux
by Selva[ Edit ] 2008-04-19 18:06:54
The Tomct installation is give in following steps:
Step 1: DownLoad and install JDK
In red-hat linux there is default opensource JDK called gcj or (GCC).This works well only for core java.But when we go for JSP(We want to intall Tomcat),this JDK does not works well so you download JDK from http://java.sun.com/j2se/.you will get [java-version].bin file
*install this .bin in directory like /usr/java/j2se1.5
*Enter the command:
export JAVA_HOME="/usr/java/j2se1.5"
Step 2
ownload and install Tomcat5
*Download Tomcat from http://www.apache.org/dist/jakarta/tomcat-5/ ,you will get zip file
*Unzip the downloaded file and move this to directory like /usr/local/jakarta-tomcat5.0.28
*Add the user tomcat as in the following command:
useradd -d /usr/local/jakarta-tomcat5.0.28 tomcat
*Move to directory /usr/local/jakarta-tomcat5.0.28/bin
*Give the command
sh startup.sh
Now the tomcat is started and examine this by giving the url http://localhost:8080 in browser,You will the tomcat's default web page
To run JSP place .jsp files in
/usr/local/jakarta-tomcat5.0.28/webapps/ROOT/ direcorty