Real-time view of Linux under Tomcat run log __linux
Source: Internet
Author: User
When you deploy a project on Linux, you start Tomcat, and you often see only the following display:
If there is a bug in the project or something unusual, it is difficult to see the error message, how to see the same as the windows of Tomcat or run on eclipse in real time to see the error prompts. The method is as follows: Enter the logs of your Tomcat installation directory, such as my installation directory is/usr/local/tomcat, then enter/usr/local/tomcat/logs
Enter LS to see a catalina.out file in the directory, which is a variety of information that records the runtime, when Tomcat runs, go into the directory, view the contents of the file, you can see the various print of Tomcat running as well as the prompt information to see the commands below (view from the end of the file):
Tail-f Catalina.out Press CTRL + C to finish viewing
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.