Chapter 3: Tomcat Installation Path on Gentoo Standard Tomcat Path /usr/share/tomcat-x.y/bin /usr/share/tomcat-x.y/common /etc/tomcat-x.y /var/log/tomcat-x.y /usr/share/tomcat-x.y/server /var/lib/tomcat-x.y/shared /usr/share/tomcat-x.y/lib /var/tmp/tomcat-x.y /var/lib/tomcat-x.y/webapps /var/run/tomcat-x.y /bin /common for Tomcat 5.5 and before; not present in Tomcat 6. /conf /logs /server for Tomcat 5.5 and before; not present in Tomcat 6. /shared for Tomcat 5.5 and before; not present in Tomcat 6. /lib for Tomcat 6. Not present in earlier versions, i.e., Tomcat 5.5 and before. /temp /webapps /work Tomcat installations on Gentoo Linux, a popular Linux distribution, have a different directory structure than standard Tomcat installations. Instead of using the Gentoo emerge command to install, administrators can install the standard Tomcat distribution as on other Linux distributions. Viewing the Default Installation To confirm that Tomcat is running, point your browser to the following URL: http://localhost:8080/ Choose the JSP Examples link from the menu on the left-hand side and select some of the examples to run. Confirm that they run without error messages. Do the same for the Servlet Examples to test their functionality. Modifying Port Numbers Tomcat uses port 8080 by default. Because the majority of server hardware already includes a standard Web server installation, usually Apache, Tomcat does not attempt to connect to the standard HTTP traffic port, 80, by default. The configuration file that specifies the port number is called server.xmland can be found in the $CATALINA_HOME/conf directory. Somewhere within it you should find the following entry:
For high quality java hosting services please check tomcat web hosting website.
This entry was posted
on Thursday, January 22nd, 2009 at 3:03 pm and is filed under tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
Responses are currently closed, but you can trackback from your own site.