Friday, April 23, 2010

Installing Apache Tomcat

  1. Download the latest stable release of tomcat from the tomcat website.
  2. Extract it to the required root directory. In our case it is /usr/tomcat/
    • tar -xzf /apache-tomcat-6.0.20.tar.gz -C /usr/tomcat/
    • NOTE: /usr/tomcat directory has to be created.
  3. Create a symbolic from /usr/tomcat/apache-tomcat-6.0.20 to latest. Commands shown below.
    • cd /usr/tomcat
    • ln -s apache-tomcat-6.0.20 latest
  4. Add CATALINA_HOME = /usr/tomcat/latest to /etc/profiles.
  5. Execute the following command after the changes to /etc/profiles has been made.
    • source /etc/profiles

No comments:

Post a Comment