Ubuntu – How should I install Apache Tomcat 7 for use with Eclipse

12.04eclipseinstallationtomcattomcat7

Which way should I install Apache Tomcat 7 on my Ubuntu:

  1. Using sudo apt-get install tomcat7
  2. From the zip file downloaded from Apache website.

I don't want the server to start on each boot. As most of the time I will be using it in my Eclipse to run simple Web applications. So, do I need to install it any other way to avoid tomcat start automatically?

Best Answer

You can use sudo apt-get install tomcat7 to install Tomcat.

To disable autostarting, run the following command after installing:

sudo update-rc.d tomcat7 disable