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

Popular posts from this blog

Can not connect to git using ssh (Permissions 0644 for '/root/.ssh/id_rsa' are too open.

Upload file on Google cloud storage using Java servlet on google app engine

Create Nested table inside a table on a pdf document using iText