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
Stephen has over 30 years of experience in training, development, and consulting in a variety of technology areas including Python, Java, C, C++, XML, JavaScript, Tomcat, JBoss, Oracle, and DB2. His background includes design and implementation of business solutions on client/server, Web, and enterprise platforms. Stephen has a degree in Computer Science and Physics from Florida State University.
About Webucator
Webucator provides instructor-led training to students throughout the US and Canada. We have trained over 90,000 students from over 16,000 organizations on technologies such as Microsoft ASP.NET, Microsoft Office, Azure, Windows, Java, Adobe, Python, SQL, JavaScript, Angular and much more. Check out our complete course catalog.