You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Akash Sahoo edited this page Feb 2, 2016
·
11 revisions
1. Apache Tomcat
Apache Tomcat is a web container which allows to run servlet and JavaServer Pages (JSP) based web applications. Most of the modern Java web frameworks are based on servlets, e.g. JavaServer Faces, Struts, Spring.
Apache Tomcat also provides by default a HTTP connector on port 8080, i.e., Tomcat can also be used as HTTP server. But the performance of Tomcat is not as good as the performance of a designated web server, like the Apache HTTP server.
2. Installation
##2.1. Ubuntu Linux
For Ubuntu you can install Tomcat via the following commands.
sudo apt-get install tomcat7
sudo apt-get install tomcat7-admin
sudo apt-get install tomcat7-docs
sudo apt-get install tomcat7-examples
##2.2. Windows
Download the Windows installer for Tomcat7 from the Apache Tomcat Homepage and run the installer.
#3. Managing Apache Tomcat
##3.1. Start Tomcat on Ubuntu (Linux)
In Ubuntu the Tomcat server is started automatically. To restart Tomcat use the following command.