avatar
Question about Tomcat# Java - 爪哇娇娃
s*n
1
I have setup a tomcat server. When I run it in Windows 2K, there were some
information about the status of the server on the DOS prompt. Once the server
crashes, the DOS is just gone :(
How to save this screendump to a log file? I need this screendump for debuging
purpose.
Thanks!
avatar
f*h
2
use start tomcat, I think the console will stay there.

【在 s*********n 的大作中提到】
: I have setup a tomcat server. When I run it in Windows 2K, there were some
: information about the status of the server on the DOS prompt. Once the server
: crashes, the DOS is just gone :(
: How to save this screendump to a log file? I need this screendump for debuging
: purpose.
: Thanks!

avatar
e*g
3
tomcat start/run/debug/...

【在 s*********n 的大作中提到】
: I have setup a tomcat server. When I run it in Windows 2K, there were some
: information about the status of the server on the DOS prompt. Once the server
: crashes, the DOS is just gone :(
: How to save this screendump to a log file? I need this screendump for debuging
: purpose.
: Thanks!

avatar
s*n
4
this seems not work ...
when I type any of teh three commands, the response was only a blank line.
??

server
debuging

【在 e***g 的大作中提到】
: tomcat start/run/debug/...
avatar
h*b
5
I think use run instead of start will not spawn a new window, try it.

some

【在 s*********n 的大作中提到】
: this seems not work ...
: when I type any of teh three commands, the response was only a blank line.
: ??
:
: server
: debuging

avatar
m*t
6

server
debuging
Doesn't tomcat use log4j? I remember the out of box config is whatever gets
printed
to the console is also sent to a file logger.

【在 s*********n 的大作中提到】
: I have setup a tomcat server. When I run it in Windows 2K, there were some
: information about the status of the server on the DOS prompt. Once the server
: crashes, the DOS is just gone :(
: How to save this screendump to a log file? I need this screendump for debuging
: purpose.
: Thanks!

avatar
c*s
7
Tomcat is nothing but a java programm. Use basic way to startup tomcat.
java -cp="bin/bootstrap.jar" org.apache.catalina.startup.Bootstrap
-Dcatalina.home="" start
append " > mylog.txt" to dump the information to your a log file

server
debuging

【在 s*********n 的大作中提到】
: I have setup a tomcat server. When I run it in Windows 2K, there were some
: information about the status of the server on the DOS prompt. Once the server
: crashes, the DOS is just gone :(
: How to save this screendump to a log file? I need this screendump for debuging
: purpose.
: Thanks!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。