大家好,又见面了,我是你们的朋友全栈君。
随笔- 168 文章- 1 评论- 8
linux下实时查看tomcat运行日志
1、先切换到:cd home/tomcat/logs
2、tail -f catalina.out
3、这样运行时就可以实时查看运行日志了
4.Ctrl c 是退出tail命令
eg:
[root@TEST-A logs]# ls
catalina.2018-07-05.log catalina.out localhost.2018-07-05.log localhost_access_log.2018-07-06.txt
catalina.2018-07-06.log host-manager.2018-07-05.log localhost_access_log.2018-07-05.txt manager.2018-07-05.log
[root@TEST-A logs]# cd ../
[root@TEST-A apache-tomcat-7.0.88]# ls
bin conf lib LICENSE logs NOTICE RELEASE-NOTES RUNNING.txt temp webapps work
[root@TEST-A apache-tomcat-7.0.88]# cd logs/
[root@TEST-A logs]# ls
catalina.2018-07-05.log catalina.out localhost.2018-07-05.log localhost_access_log.2018-07-06.txt
catalina.2018-07-06.log host-manager.2018-07-05.log localhost_access_log.2018-07-05.txt manager.2018-07-05.log
[root@TEST-A logs]# tail -f catalina.out
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/151403.html原文链接:https://javaforall.cn