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:
- Start a Command Prompt from the Start menu.
- Navigate to the Tomcat
bin
directory, e.g.,c:/Tomcat8/bin
: - Type in
startup
and then hit Enter to execute the Tomcat server start up script: - A separate window will open and a series of messages will appear, followed by the message indicating the server is started:
The exact number of milliseconds will vary based on the number of web applications that are deployed, among other factors.
- To stop the Tomcat server, type in
shutdown
and then hit Enter in the original command prompt:The startup window that appeared earlier will now be closed, indicating the Tomcat server has been stopped.
Related Articles
- How to Start and Stop Apache Tomcat from the Command Line (Windows) (this article)
- How to Deploy a WAR File to Apache Tomcat (Windows)
- How to Start and Stop Apache Tomcat from the Command Line (Linux)
- How to Deploy a WAR File to Apache Tomcat (Linux)
- How to Run a JSP Program in Apache Tomcat (Windows)
- How to Check the Status of the Apache Tomcat Server (Windows)
- How to Deploy a Web Application Using the Apache Tomcat Manager (Windows)
- How to Check the Status of the Apache Tomcat Server (Linux)
- How to Set Default Context Path in Apache Tomcat (Windows)
- How to Use the autoDeploy Attribute in Apache Tomcat (Windows)
- How to Deploy a Web Application Using the Apache Tomcat Manager (Linux)
- How to List Deployed Applications Using the Apache Tomcat Manager (Windows)
- How to Run Multiple Instances of Apache Tomcat on One Server (Windows)
- How to Run a JSP Program in Apache Tomcat (Linux)
- How to Establish a JDBC Connection in Apache Tomcat (Windows)
- How to Verify Apache Tomcat Server Operation (Windows)
- How to Cluster in Apache Tomcat (Linux)
- How to Undeploy Web Applications Using the Apache Tomcat Manager (Windows)
- How to Set Default Context Path in Apache Tomcat (Linux)
- How to Use the Java Logging API in Apache Tomcat (Windows)
- How to Cluster in Apache Tomcat (Windows)
- How to Use the Java Logging API in Apache Tomcat (Linux)
- How to Use the autoDeploy Attribute in Apache Tomcat (Linux)
- How to Configure Apache Tomcat to Use MBeans (Windows)
- How to List Deployed Applications Using the Apache Tomcat Manager (Linux)
- How to Install and Configure Apache Tomcat (Windows)
- How to Configure Apache Tomcat to Use MBeans (Linux)