i start to开发者_开发技巧mcat by running startup.bat and there will be a small cmd-window running the tomcat. After that i wanted to stop tomcat and I close that window.
And topcat stopped. so what is the point of shutdown.bat?
shutdown.bat
allows Tomcat to clean up after itself, if it needs to. The functionality to shutdown from a command instead of just closing a window also allows for remote management.
Most applications can be shutdown in more than one way; there's the "graceful" way, where a program can clean up after itself; the less-than graceful way, where a program can try to catch a shutdown (termination) signal; and the harsh way, where a program is "killed" (kill -9 in unix). Closing the window is probably closer to the second way.
And of course it wouldn't work very well if you didn't have access to a windowing environment on a remote server.
精彩评论