Linux view tomcat logs and export files

Pan Lin builds a development environment to view the tomcat log command:
journalctl -u tomcat


Instantly track and view the server log: journalctl -f -u tomcat


generates the tomcat.log file in the current folder
journalctl -u tomcat -o short > ~/tomcat.log

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326261094&siteId=291194637