简体   繁体   English

从服务启动tomcat时如何查看tomcat控制台

[英]How to see tomcat console when tomcat started from services

This might be silly question but I really don't know it. 这可能是一个愚蠢的问题,但我真的不知道。

I have performed some changes in my web application in java/jsp. 我已经在Java / jsp的Web应用程序中执行了一些更改。 Tested it in localhost in eclipse where I can see logs in console. 在eclipse的localhost中测试了它,在控制台中可以看到日志。 After that I have deployed the changes to beta server and its not reflecting as in localhost hence want to see running logs through tomcat console but Tomcat is already running and was started with services utility of windows. 之后,我将更改部署到beta服务器,其更改未反映在localhost中,因此希望通过tomcat控制台查看运行日志,但是Tomcat已在运行,并且已通过Windows的服务实用程序启动。

Is there any way to open console of running tomcat. 有什么方法可以打开运行tomcat的控制台。

I do know that we can see tomcat logs as well, but running console will be preferred for me as there are multiple projects are running on same server. 我确实知道我们也可以看到tomcat日志,但是对我而言,首选运行控制台是因为同一服务器上正在运行多个项目。

您可以在tomcat-home / logs文件夹中检查日志文件。

You can attach Eclipse to a running process if you have started the server with the right settings: see Attach debugger to application using Eclipse On windows, you can either delete and reinstall the services as in https://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html or, you can add these parameters in the Windows registry for the Tomcat you are running: see http://www.tomcatexpert.com/knowledge-base/allocating-more-ram-tomcat-windows . 如果已使用正确的设置启动服务器,则可以将Eclipse附加到正在运行的进程:请参阅使用Eclipse将调试器附加到应用程序。在Windows上,您可以按照https://tomcat.apache.org/tomcat的方法删除并重新安装服务。 -7.0-doc / windows-service-howto.html,或者您可以在Windows注册表中为正在运行的Tomcat添加以下参数:请参阅http://www.tomcatexpert.com/knowledge-base/allocating-more-ram -tomcat-windows I would be very careful with the registry hack unless you've hacked the registry before and are comfortable doing it. 除非您之前曾经破解过注册表并且对此感到满意,否则我会非常谨慎地对待注册表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM