tomcat相关

1)tomcat catalina.out日志覆盖
创建脚本文件:touch catalina.out
复制到指定路径:cp catalina.out /opt/apache-tomcat-7.0.57/logs

2)tomcat实时日志查看:
进入tomcatlogs目录下:cd /opt/apache-tomcat/logs/
查看实时日志:tailf catalina.out或者tail -f catalina.out

Last modification:May 12th, 2020 at 08:29 pm
如果觉得我的文章对你有用,请随意赞赏