Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
2.3. Running the Installation
2.3.1. Running a RPM Installation Link kopierenLink in die Zwischenablage kopiert!
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.28/mod_jk.conf.sample and /usr/share/doc/mod_jk-ap20-1.2.28/workers.properties.sample for examples of how this can be achieved.
To use log4j for logging in Tomcat 6, install the tomcat6-log4j rpm file.
To use log4j for logging in Tomcat 5, you must copy the appropriate files from the Tomcat 6 distribution included in JBoss Enterprise Application Platform 1.0.1. Copy log4j.jar from tomcat6/extras into tomcat5/common/lib. Copy log4j.properties from tomcat6/extras files into tomcat5/common/classes.
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/