1、进入tomcat的logs目录

cd /opt/tomcat/apache-tomcat-9.0.20/logs


2、查看日志

tail -f catalina.out


  • Ctrl+C 是退出tail命令