Procedure

  1. Start by ssh-ing to the application server
  2. While on the server:
    • To start, run: 
      systemctl start tomcat.service
    • To stop, run: 
      systemctl stop tomcat.service
    • To restart, run: 
      systemctl restart tomcat.service
  3. Check logs


FAQs

How to Check Logs

To view logs, you can check either the Tomcat home directory, or through the journalctl Linux utility.


Tomcat logs:

  • /opt/tomcat/logs/catalina*.log


journalctl:

  • journalctl -u tomcat.service