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
bindirectory, e.g.,c:/Tomcat8/bin:
- Type in
startupand 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
shutdownand 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.
