Restart tomcat through webapp

后端 未结 3 1845
眼角桃花
眼角桃花 2021-01-14 05:13

I have a crazy request about restarting tomcat server through my webapp. I was searching for nearly 2 days about this and all i found are executing external batch file or ca

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-14 05:49

    You can connect to the shutdown port tomcat opens and issue the shutdown command.
    See http://tomcat.apache.org/tomcat-7.0-doc/config/server.html

提交回复
热议问题