How to Start and Stop Apache Tomcat from the Command Line (Linux)
Apache Tomcat can be started and stopped from the command line. In this topic I will show you how to start and stop Tomcat from the command line in Ubuntu, which is a Linux distribution derived from Debian.
To learn how to start and stop Apache Tomcat from the command line in a Linux environment, follow these 5 steps:
- Start a Terminal window from the menu bar.
- Type in
sudo service tomcat7 start and then hit Enter:
- You will receive the following message indicating the server is started:
- To stop the Tomcat server, type in
sudo service tomcat7 start and then hit Enter in the original terminal window:
- You will receive a message indicating the Tomcat server has been stopped.
Author: Stephen Withrow