Stop a web application tomcat from command line

Michael Küller picture Michael Küller · Jun 18, 2012 · Viewed 41.7k times · Source

I'm writing a bash script that automatically deploys an application to a tomcat server. How can I stop the application from bash / command line?

Answer

Sam picture Sam · Jun 18, 2012

The easiest method I know of is to install the Tomcat manager webapp, note the URL for stopping an application, and wget that URL.