Under Windows, Tomcat starts with a black window, It is easy to see the function output of System.out.println or ex.printstacktrace, it is very convenient to debug, but in Linux, there is no such window, so we have to debug a certain difficulty.
But in fact Tomcat is a place where we can see these outputs, that is the Catalina.out file in the logs directory!! This file will store all the log information and print information, so no pain can not see the debug output information, look at this file is ok
The above text comes from: How can I view the output of System.out.println when I debug a web app on Linux?
So: We enter the logs directory under Tomcat first on Linux and then enter the command:
Tail-f Catalina.out
To view System.out.println printed statements.
Then how to exit the Catalina.out file, enter the command:
CTRL + C
Linux_ server _02_ How to look at the Eclipse console output statement on Linux