I'm just saying now how to look at the remote Tomcat Console command.
Log in to Linux with a remote login client
Go to the tomcat/logs/folder
Type directive: Tail-f catalina.out
CTRL + C exit
This will allow you to view the Tomcat console like your local computer.
The tail command writes the file to standard output starting at the specified point. Using the-f option of the tail command makes it easy to see the log files that are being changed, TAIL-F filename will display the most up-to-date contents of the filename on the screen, and not only refresh, so you can view the latest file content.
1. command format;
tail[necessary parameters [selection parameters] [file]
2. Command function:
Used to display the content at the end of the specified file, and is processed as input when the file is not specified. Common view log files.
3. Command parameters:
-F Loop Read
-Q does not display processing information
-V displays detailed processing information
Number of-c< > bytes displayed
-n< lines > Display rows
--pid=pid is shared with-F, which means that the process ends after the id,pid dies.
-Q,--quiet,--silent never output the header of the file name
-S,--sleep-interval=s is combined with-F, which means sleep s seconds at each repetition interval
4. Usage examples:
Example 1: Displaying the end of a file
Command:
Tail-n 5 Log2014.log
Output:
[Email protected] test]# tail-n 5 Log2014.log
2014-09
2014-10
2014-11
2014-12
==============================[[email protected] test]#
Description
Displays the last 5 lines of the file
Example 2: Looping through the contents of a file
Command:
Tail-f Test.log
Linux Remote View Tomcat console