How to Start and Stop Apache Tomcat from the Command Line (Linux)
See Apache: Tips and Tricks for similar articles.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.
Related Articles
- How to Start and Stop Apache Tomcat from the Command Line (Windows)
- How to Deploy a WAR File to Apache Tomcat (Windows)
- How to Start and Stop Apache Tomcat from the Command Line (Linux) (this article)
- 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)