|
179.
|
|
|
To install the Tomcat server, you can enter the following command in the terminal prompt:
|
|
|
|
Para instalar el servidor Tomcat, puede ingresar la siguiente orden en la consola:
|
|
Translated and reviewed by
Paco Molinero
|
|
|
|
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.
|
|
|
|
Con ello se instalará un servidor de Tomcat con un ROOT webapp por defecto que muestra una página mínima «funciona» (it works) por defecto.
|
|
Translated by
Paco Molinero
|
|
|
|
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
|
|
|
|
Cambiar el puerto predeterminado
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/web-servers.xml:1128(title)
|
|
184.
|
|
|
By default Tomcat runs a HTTP connector on port 8080 and an AJP connector on port 8009. You might want to change those default ports to avoid conflict with another application on the system. This is done by changing the following lines in <filename>/etc/tomcat7/server.xml</filename>:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:1129(para)
|
|
185.
|
|
|
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
...
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
...
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/web-servers.xml:1134(programlisting)
|
|
186.
|
|
|
Changing JVM used
|
|
|
|
Cambiar el JVM usado
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/web-servers.xml:1143(title)
|
|
187.
|
|
|
By default Tomcat will run preferably with OpenJDK JVMs, then try the Sun JVMs, then try some other JVMs. You can force Tomcat to use a specific JVM by setting JAVA_HOME in <filename>/etc/default/tomcat7</filename>:
|
|
|
|
De forma predeterminada Tomcat se ejecutará preferentemente sobre JVMs de OpenJDK, luego intentará los JVMs de Sun y finalmente algunas otras JVMs. Puede forzar a que Tomcat use una JVM específica estableciendo JAVA_HOME en <filename>/etc/default/tomcat7</filename>:
|
|
Translated and reviewed by
Jose Luis Tirado
|
|
|
|
Located in
serverguide/C/web-servers.xml:1144(para)
|
|
188.
|
|
|
JAVA_HOME=/usr/lib/jvm/java-6-sun
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
JAVA_HOME=/usr/lib/jvm/java-6-sun
|
|
Translated by
Paco Molinero
|
|
|
|
Located in
serverguide/C/web-servers.xml:1148(programlisting)
|