Bin

The startup and shutdown scripts merely call the important one: tomcat.sh. This script does two things:

  • Guesses a CLASSPATH

  • Passes command-line arguments to org.apache.tomcat.startup.Tomcat. These include start and stop, plus the location of the appropriate server.xml file (see later), which configures Tomcat. For instance, if you want to use /etc/server_1.xml with Tomcat and Apache, you would start Tomcat with:

    bin/tomcat.sh start -f/etc/server_1.xml

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.