Este conteúdo não está disponível no idioma selecionado.
2.3. Running the Installation
2.3.1. Running a RPM Installation Copiar o linkLink copiado para a área de transferência!
Tomcat can be started, stopped, and configured to start automatically at boot time either from the command line or using a graphical tool.
tomcat5 or tomcat6 services can be started and stopped using the service command as root on a console window (as is typical of a network service):
tomcat5 service:
service tomcat5 start
service tomcat5 start
service tomcat5 stop
service tomcat5 stop
tomcat6 service:
service tomcat6 start
service tomcat6 start
service tomcat6 stop
service tomcat6 stop
su -s /bin/bash tomcat system command to deploy the application under the webapps directory. Alternatively, a developer can be listed in the tomcat user group by the system administrator. The best approach is to use the Web Console (URL above) to deploy the application.
chkconfig command (see the chkconfig man page for further details).
/etc/sysconfig/tomcat5 file for Tomcat version 5 and the /etc/sysconfig/tomcat6 file for Tomcat version 6.
The HTTP Server can be started, stopped, and configured to start automatically at boot time either from the command line or using a graphical tool.
service command as root on a console window (as is typical of a network service):
service httpd22 start
service httpd22 start
service httpd22 stop
service httpd22 stop
service httpd start
service httpd start
service httpd stop
service httpd stop
/etc/sysconfig/httpd22 file on Red Hat Enterprise Linux 4 and the /etc/sysconfig/httpd file on Red Hat Enterprise Linux 5.
To load the mod_jk module, the file /etc/httpd22/conf/httpd.conf on Red Hat Enterprise Linux 4 or the file /etc/httpd/conf/httpd.conf on Red Hat Enterprise Linux 5 needs to be updated, and a workers.properties file needs to be added in that directory. See /usr/share/doc/mod_jk-ap20-1.2.27/mod_jk.conf.sample and /usr/share/doc/mod_jk-ap20-1.2.27/workers.properties.sample for examples of how this can be achieved.
log4j for logging in Tomcat 6
In order to use log4j for logging in Tomcat 6, install the tomcat6-log4j rpm file.
Edit /etc/sysconfig/tomcat5 file for Tomcat 5 or /etc/sysconfig/tomcat6 for Tomcat 6 and add the LD_LIBRARY_PATH variable so that it points to the library correct library:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/