Windows上的Tomcat控制台输出在哪里 [英] Where is Tomcat Console Output on Windows

查看:574
本文介绍了Windows上的Tomcat控制台输出在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前是用startup.bat从它的bin文件夹中启动tomcat的.通过运行该脚本,它打开了一个Java窗口,在其中可以查看tomcat的输出.但是,有人告诉我这不是在Windows服务器上启动tomcat的正确方法.因此,我现在通过服务程序启动tomcat.这样一来,就不会再打开Java窗口了,因此我看不到tomcat的输出消息.

I used to start tomcat from its bin folder with the startup.bat. By running that script it opened a java window in which I can see the outputs from tomcat. However, I've been told that this is not the right way to start tomcat on a windows server. Therefore I start tomcat now over the service program. By doing so no java window is being opened anymore and therefore I can't see the output msg from tomcat.

我还查看了tomcat的logs文件夹.这些保存的输出与我在Java窗口中拥有的输出不同.有谁知道我在哪里可以找到这些输出?

I have also looked into the logs folder of tomcat. Those saved outputs are not the same as the one I had/have in java window. Does anyone know where I can find those outputs?

在此先感谢您的任何建议.

Many thanks in advance for any advices.

推荐答案

如果我们假设您的安装位于C:\ program files \ apache软件基础\ apache-tomcat {ver} \

If we assume your install is in C:\program files\apache software foundation\apache-tomcat{ver}\

然后将其放在日志目录中的catalina.out文件中.

then it is inside, in the log directory, in a file catalina.out.

C:\ program files \ apache软件 基金会\ apache-tomcat {ver} \ logs \ catalina.out

C:\program files\apache software foundation\apache-tomcat{ver}\logs\catalina.out

值得注意的是,文件的名称取决于您的配置,logs目录的名称也可以根据配置而有所不同,但是我认为您保留了默认配置.

It's worth to note the name of the file depends on your configuration, also the name of the logs directory can be different depending on configuration but I assume you preserved default config.

这篇关于Windows上的Tomcat控制台输出在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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