Apache Tomcat is a Web container that allows to serve Java Servlets (such as Solr full-text search server) and JSP (Java Server Pages) Web applications. More information can be found on Tomcat official site.
In this tutorial you will learn how to install Tomcat 7 on Ubuntu 11.10. To install Tomcat type the following command in the terminal.
sudo apt-get install tomcat7
This will install Tomcat on port 8080 (default) and autostart it (also it will be set to autostart on system reboot). To see if installation went successfully, navigate to http://localhost:8080 in your browser. You should see a default page which displays "It works!".
To have Apache Solr work with Tomcat, you do not need to configure anything. Default settings will work out of the box. If necessary, you can refer to Ubuntu Documentation for Tomcat.
If you need to stop or start Tomcat, run the following respectively:
~$ sudo service tomcat7 stop ~$ sudo service tomcat7 start