将 Tomcat 7 控制台日志输出重定向到文件 (Windows) [英] Redirect Tomcat 7 console log output to a file (Windows)

查看:36
本文介绍了将 Tomcat 7 控制台日志输出重定向到文件 (Windows)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将 Tomcat 7 控制台日志输出重定向到 Windows 上的文件?

How do I redirect Tomcat 7 console log output to a file on Windows?

推荐答案

使用 catalina.bat run 可以在当前控制台启动 tomcat 而不是新的控制台,这样就可以重定向所有标准使用

Using catalina.bat run can start the tomcat in the current console instead of a new console , so you can redirect all the standard error and standard output stream of this command to a file using

catalina.bat run > tomcat.log 2>&1

这篇关于将 Tomcat 7 控制台日志输出重定向到文件 (Windows)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆