通过tomcat shutdown port关闭tomcat
在tomcat server.xml配置文件中,有个配置项
<Server port="8005" shutdown="SHUTDOWN">
通过向8005端口发送 SHUTDOWN字符可以关闭tomcat
1. 启动tomcat
2. telnet到 8005 进入控制台:telnet localhost 8005, 输入SHUTDOWN即可关闭tomcat
Please call me JiangYouDang!