Starting and Stopping Tomcat in macOS and Linux for JamfPro Server
Starting and stopping Tomcat in macOS or Linux is an essential skill when using JamfPro servers, especially in a clustered environment. Knowing these commands and having them at your fingertips are important for administrators on these systems. You may want to bookmark this page or copy and paste these to your notes for easy access.
On macOS:
1. Open Terminal on the JSS host server.
2. To unload the Tomcat web application process:
sudo launchctl unload /Library/LaunchDaemons/com.jamfsoftware.tomcat.plist
3. To reload and launch the Tomcat web application process:
sudo launchctl load /Library/LaunchDaemons/com.jamfsoftware.tomcat.plist
On Linux:
If you installed the JSS using the JSS installer, execute the following command:
sudo /etc/init.d/jamf.tomcat8 restart
If you installed the JSS manually, execute the following command:
service tomcat8 restart or service jamf.tomcat8 restart
Check out this discussion thread on Jamf-Nation to find out more:
https://www.jamf.com/jamf-nation/articles/117/starting-and-stopping-tomcat
About Apache Tomcat
Tomcat is a web server and a Servlet/JavaServer Pages container. It is often used as an application server for strictly web-based applications but does not include the entire suite of capabilities that a Java EE application server would supply. Apache Tomcat software powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations.
Find out more at: http://tomcat.apache.org
Apache Tomcat Versions Installed by the Jamf Pro Installer
Jamf Pro installs different versions of Apache Tomcat. Check this link to find out which version should be installed with the version of Jamf Pro running in your environment.
Related Articles to Consider
Increase Tomcat Memory for Clustered Jamf Pro Web Apps in macOS https://edtechchris.com/2017/04/14/increase-tomcat-memory-clustered-jamfpro-web-apps-macos/
Increase Tomcat Memory for Clustered JamfPro Web Apps in Linux https://edtechchris.com/2017/04/13/increase-tomcat-memory-for-clustered-jamfpro-web-apps/
Take Out the Trash | How to Clear Pending and Failed Commands in Jamf Pro 10