Tomcat

How to install Tomcat 7 on Ubuntu
Install via apt-get: $ sudo apt-get install tomcat7-* Set the environmental variables in  : export CATALINA_HOME=/usr/share/tomcat7 export CATALINA_BASE=/var/lib/tomcat7 export CLASSPATH=$CLASSPATH:.:$CATALINA_HOME/lib/servlet-apt.jar:$CATALINA_HOME/lib/jsp-api.jar

How to start, stop and restart Tomcat on Linux
To start, stop and restart Tomcat 7 service: $ sudo service tomcat7 start $ sodo service tomcat7 stop $ sudo service tomcat7 restart

Location of webapps directory
/var/lib/tomcat7/webapps/