Windows上的Tomcat控制台输出在哪里

编程入门 行业动态 更新时间:2024-10-25 10:28:03
本文介绍了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控制台输出在哪里

本文发布于:2023-11-28 09:02:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641772.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   Windows   Tomcat

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!