Starting, Stopping, and Restarting Tomcat
Once you have the installation completed, you will probably be eager to start Tomcat and see if it works. This section details how to start up and shut down Tomcat, including specific information on each supported operating system. It also details common errors that you may encounter, enabling you to quickly identify and resolve any problems you run into.
Starting Up and Shutting Down
The correct way to start and stop Tomcat depends on how you installed it. For example,
if you installed Tomcat from a Linux RPM package, you should use the init script that came with that package to start and stop
Tomcat. Or, if you installed Tomcat on Windows via the graphical installer from tomcat.apache.org, you should start and stop
Tomcat as you would any Windows service. Details about each of these package-specific
cases are given in the next several sections. If you installed Tomcat by downloading the
binary release archive (.zip or .tar.gz) from the Tomcat downloads page—what we'll call the
generic installation case—you should use the command-line scripts that reside in the
CATALINA_HOME/bin directory.
There are several scripts in the bin directory that you will use for starting and stopping Tomcat. All the scripts you will need to invoke directly are provided both as shell script files for Unix (.sh) and batch files for Windows (.bat). Table 1-1 lists these scripts and describes each. When referring to these, we have omitted the filename extension because ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access