开发者

why do we need to run shutdown.bat for tomcat

开发者 https://www.devze.com 2023-03-04 03:40 出处:网络
i start to开发者_开发技巧mcat by running startup.bat and there will be a small cmd-window running the tomcat.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消