Time for action – installing Apache Tomcat on Ubuntu
We will install Apache Tomcat 7.x release.
On Ubuntu, you have two alternatives for installing Apache Tomcat. You can use the package manager to get it. At the time of writing, Ubuntu repositories contain the 7.0.26 release of Apache Tomcat for Ubuntu 12.04. I prefer, and we will be following this method in the book, to download the archive and perform a manual installation. You will have full control over the installation and you can choose the appropriate release number. On the other hand, you can't rely on automatic updates for Tomcat.
You may want to read the license agreement: http://www.apache.org/licenses.
Download the archive:
~$ wget http://apache.panu.it/tomcat/tomcat-7/v7.0.27/bin/apache-tomcat-7.0.27.tar.gz
Extract it in a folder for alternate applications, specific to your server;
/opt
sounds like a good place.~$ sudo tar xvfz apache-tomcat-7.0.27.tar.gz -C /opt
You need to properly configure Tomcat before you can use it. Go...