在Debian系统下,Tomcat的日志文件通常位于以下几个目录之一:
journalctl
journalctl -u tomcat9 -b --no-pager
或者查看最近的错误日志:
journalctl -p err -b | grep tomcat9