tomcat restart webapp from command line

前端 未结 5 2213
南旧
南旧 2020-12-28 14:53

I have a PCI DSS compliant environment which runs several apps and I want to restart only one app without restarting the server. I don\'t have the manager because apparently

5条回答
  •  梦谈多话
    2020-12-28 15:24

    I know I am late to the party, but a little trick you can do in order to reload the app from the command line is to go to the web.xml of the application and simply touch it.

    cd webapps//WEB-INF/

    touch web.xml

    tomcat reloads the application every time it notices a change on this file, if you simply touch it, you are not actually modifying the file, just the timestamp.

提交回复
热议问题