Procedure
- Start by
ssh-ing to the application server - 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
- To start, run:
- 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