The linux command restarts tomcat and displays the export log

Temporary log viewing journalctl -f parameter can track real-time log

Restart tomcat command:
systemctl restart tomcat

development environment View tomcat log command:
journalctl -u tomcat

real-time tracking View 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=326271748&siteId=291194637