作为 Windows 服务运行时,Tomcat 7 控制台和/或托盘图标未显示

问题描述:

我已将 Tomcat7 作为服务安装 (service.bat).它作为服务启动并正常工作,但我没有看到通常在您使用 Tomcat7.exe 或 startup.bat 手动启动服务器时出现的控制台.

I have installed Tomcat7 as a service(service.bat). It starts and works fine as a service, but I don't see a console that usually comes up when you manually start the server using Tomcat7.exe or startup.bat.

顺便说一句,我在 Windows 7 上,我从这里尝试了一些东西 - http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

Btw, I'm on windows 7 and I have tried a few things from here - http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html

我可以使用 - tomcat7w//MS//tomcat7w

I can put the 'Tomcat7w monitor application' to the tray using - tomcat7w //MS//tomcat7w

但我需要 Tomcat7 服务本身的控制台和/或托盘图标.

But I need a console and and/or a tray icon for the Tomcat7 service itself.

解决方案是在命令提示符窗口中转到 tomcat/bin 文件夹,然后尝试类似的操作:tomcat8w//MS//Tomcat8

The solution is that go to the tomcat/bin folder in a command prompt window then try something like that: tomcat8w //MS//Tomcat8

就是这样,监控服务出现了.

And that's it, the monitor service appear.