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

See Apache: Tips and Tricks for similar articles.

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.