IT Certificaions

Google Cloud Platform

Wednesday, February 22, 2012

Install apache tomcat on Ubuntu Linux


First move tar.gz file into /usr/local/src/ directory and now extract here,

 tar  xzvf  apache-tomcat-6.0.35.tar.gz

 It will extract apache-tomcat-6.0.35.tar.gz file into directorty apache-tomcat-6.0.35

 Rename this directory to tomcat6,
 mv apache-tomcat-6.0.35  tomcat6

 Now set your environment variable...

 cat >> ~/.bashrc
 export CATALINA_HOME=/usr/local/src/tomcat6

 Save it using ctrl+d and then
  source ~/.bashrc

Now you can test by starting your tomcat server

  sudo $CATALINA_HOME/bin/startup.sh