Note:
JAVA must be installed before installing tomcat and JAVA_HOME must be setup.
Downloads :
Install Tomcat on linux machine (Refer this link for JAVA and Tomcat installation : http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html)
download java from : http://java.sun.com/javase/downloads/index_jdk5.jsp
Download the latest release binary build from http://www.apache.org/dist/jakarta/tomcat-5/. Since Tomcat runs directly on top of a standard JDK
I chose the gnu zipped tar file (jakarta-tomcat-5.0.28.tar.gz).
Steps :
1.Unzip Tomcat by issuing the following command from your download directory: (Currently we have jakarta-tomcat-5.0.28.tar.gz inside /usr/local directory)
tar xvzf jakarta-tomcat-5.0.28.tar.gz
2.The directory where Tomcat is installed is referred to as CATALINA_HOME in the Tomcat documentation.
In this installation CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28.
add CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28 in /etc/profile file
it will look like
/******* /etc/profile *************/
CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.28
/*******************************/
Optional : following are the optional steps
1.I recommend setting up a symbolic link to point to your current Tomcat version. This will save you from having to make changes to startup and shutdown scripts each time
you upgrade Tomcat. It also allows you to keep several versions of Tomcat on your system and easily switch amongst them.
Here is the command I issued from inside /usr/local to create a symbolic link called /usr/local/jakarta-tomcat that points
to /usr/local/jakarta-tomcat-5.0.28:
ln -s jakarta-tomcat-5.0.28 jakarta-tomcat
2.Change the group and owner of the /usr/local/jakarta-tomcat and /usr/local/jakarta-tomcat-5.0.28 directories to tomcat:
chown tomcat.tomcat /usr/local/jakarta-tomcat
chown -R tomcat.tomcat /usr/local/jakarta-tomcat-5.0.28
No comments:
Post a Comment