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.

Related Articles

  1. How to Start and Stop Apache Tomcat from the Command Line (Windows) (this article)
  2. How to Deploy a WAR File to Apache Tomcat (Windows)
  3. How to Start and Stop Apache Tomcat from the Command Line (Linux)
  4. How to Deploy a WAR File to Apache Tomcat (Linux)
  5. How to Run a JSP Program in Apache Tomcat (Windows)
  6. How to Check the Status of the Apache Tomcat Server (Windows)
  7. How to Deploy a Web Application Using the Apache Tomcat Manager (Windows)
  8. How to Check the Status of the Apache Tomcat Server (Linux)
  9. How to Set Default Context Path in Apache Tomcat (Windows)
  10. How to Use the autoDeploy Attribute in Apache Tomcat (Windows)
  11. How to Deploy a Web Application Using the Apache Tomcat Manager (Linux)
  12. How to List Deployed Applications Using the Apache Tomcat Manager (Windows)
  13. How to Run Multiple Instances of Apache Tomcat on One Server (Windows)
  14. How to Run a JSP Program in Apache Tomcat (Linux)
  15. How to Establish a JDBC Connection in Apache Tomcat (Windows)
  16. How to Verify Apache Tomcat Server Operation (Windows)
  17. How to Cluster in Apache Tomcat (Linux)
  18. How to Undeploy Web Applications Using the Apache Tomcat Manager (Windows)
  19. How to Set Default Context Path in Apache Tomcat (Linux)
  20. How to Use the Java Logging API in Apache Tomcat (Windows)
  21. How to Cluster in Apache Tomcat (Windows)
  22. How to Use the Java Logging API in Apache Tomcat (Linux)
  23. How to Use the autoDeploy Attribute in Apache Tomcat (Linux)
  24. How to Configure Apache Tomcat to Use MBeans (Windows)
  25. How to List Deployed Applications Using the Apache Tomcat Manager (Linux)
  26. How to Install and Configure Apache Tomcat (Windows)
  27. How to Configure Apache Tomcat to Use MBeans (Linux)