控制台和选项卡
当我使用startup.bat脚本从控制台启动tomcat服务器时,会打开一个新的命令窗口,其中充满了java日志记录语句。
我使用 Console2,它利用每个打开的控制台窗口的选项卡。是否可以让java系统在console2中创建一个新选项卡,而不是仅仅打开一个新的命令窗口?
When I start the tomcat server from console using the startup.bat script, a new command window opens which is filled with java logging statements.
I use Console2 which leverages tabs for each open console window. Is it possible to let the java system create a new tab within console2 instead of just opening a new command window?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这与java无关,它只是从startup.bat调用catalina.bat的方式
,可以使用“start”参数或“run”参数调用catalina.bat。
因此,打开startup.bat,滚动到底部,您应该会看到
更改为“
我在关闭调用窗口后添加退出”。
This has nothing to do with java, its merely down to the way the catalina.bat is called from startup.bat
catalina.bat can be called with either a "start" argument or a "run" argument.
So open startup.bat, scroll to the bottom you should see
change that to
I add an exit after to close the calling window.
除非 Console2 挂钩任何创建控制台窗口的 API – 不会。而且他们也不太可能做到甚至能够做到。 Console2 只是连接控制台窗口的输入和输出。其中的程序所做的事情超出了它的兴趣。
Unless Console2 hooks any APIs that create console windows – no. And that's also highly unlikely that they do or even can. Console2 does nothing more than hook up input and output of console windows. What the programs in those do is beyond what it's interested in.