• google plus

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:

  1. Start a Terminal window from the menu bar.
  2. Type in sudo service tomcat7 start and then hit Enter:
    Start up Tomcat
  3. You will receive the following message indicating the server is started:
    Tomcat Startup Output
  4. To stop the Tomcat server, type in sudo service tomcat7 start and then hit Enter in the original terminal window:
    Shutdown Tomcat
  5. You will receive a message indicating the Tomcat server has been stopped.
    Shutdown Tomcat
Author: Stephen Withrow

Stephen has over 30 years' experience in training, development, and consulting in a variety of technology areas including Java, C, C++, XML, JavaScript, AJAX, Tomcat, JBoss, Oracle, and DB2. His background includes design and implementation of business solutions on client/server, Web, and enterprise platforms. Stephen is a published writer in both technical and non-technical endeavors. Stephen received an undergraduate 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, XML, Windows, Java, Adobe, HTML5, JavaScript, Angular, and much more. Check out our complete course catalog.