• google plus

How to Start and Stop Apache Tomcat from the Command Line (Windows)

Apache Tomcat can be started and stopped from the command line.

To learn how to start and stop Apache Tomcat from the command line in a Windows environment, follow these five steps:

  1. Start a Command Prompt from the Start menu.
  2. Navigate to the Tomcat bin directory, e.g., c:/Tomcat8/bin:
    Change directory to Tomcat bin directory
  3. Type in startup and then hit Enter to execute the Tomcat server start up script:
    Start up Tomcat
  4. A separate window will open and a series of messages will appear, followed by the message indicating the server is started:
    Tomcat Console Output
    The exact number of milliseconds will vary based on the number of web applications that are deployed, among other factors.
  5. To stop the Tomcat server, type in shutdown and then hit Enter in the original command prompt:
    Shutdown Tomcat
    The startup window that appeared earlier will now be closed, indicating the Tomcat server has been stopped.
Author: Stephen Withrow

Stephen has over 30 years' experience in training, development, and consulting in a variety of technology areas including Java, C, C++, XML, JavaScript, AJAX, Tomcat, JBoss, Oracle, and DB2. His background includes design and implementation of business solutions on client/server, Web, and enterprise platforms. Stephen is a published writer in both technical and non-technical endeavors. Stephen received an undergraduate degree in Computer Science and Physics from Florida State University.

About Webucator

Webucator provides instructor-led training to students throughout the US and Canada. We have trained over 90,000 students from over 16,000 organizations on technologies such as Microsoft ASP.NET, Microsoft Office, Azure, Windows, Java, Adobe, Python, SQL, JavaScript, Angular and much more. Check out our complete course catalog.