|
174.
|
|
|
Apache Tomcat
|
|
|
|
Apache Tomcat
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:1094(title)
|
|
175.
|
|
|
Apache Tomcat is a web container that allows you to serve Java Servlets and JSP (Java Server Pages) web applications.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1095(para)
|
|
176.
|
|
|
Ubuntu has supported packages for both Tomcat 6 and 7. Tomcat 6 is the legacy version, and Tomcat 7 is the current version where new features are implemented. Both are considered stable. This guide will focus on Tomcat 7, but most configuration details are valid for both versions.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1097(para)
|
|
177.
|
|
|
The Tomcat packages in Ubuntu support two different ways of running Tomcat. You can install them as a classic unique system-wide instance, that will be started at boot time will run as the tomcat7 (or tomcat6) unprivileged user. But you can also deploy private instances that will run with your own user rights, and that you should start and stop by yourself. This second way is particularly useful in a development server context where multiple users need to test on their own private Tomcat instances.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1100(para)
|
|
178.
|
|
|
System-wide installation
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1110(title)
|
|
179.
|
|
|
To install the Tomcat server, you can enter the following command in the terminal prompt:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1111(para)
|
|
180.
|
|
|
sudo apt install tomcat7
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1114(command)
|
|
181.
|
|
|
This will install a Tomcat server with just a default ROOT webapp that displays a minimal "It works" page by default.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1116(para)
|
|
182.
|
|
|
Tomcat configuration files can be found in <filename>/etc/tomcat7</filename>. Only a few common configuration tweaks will be described here, please see <ulink url="http://tomcat.apache.org/tomcat-7.0-doc/index.html">Tomcat 7.0 documentation</ulink> for more.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1122(para)
|
|
183.
|
|
|
Changing default ports
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1128(title)
|