tomcat restart webapp from command line

前端 未结 5 2211
南旧
南旧 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:12

    Without access to the manager application, you can't do it. If you can get access to the manager application, and still want to use the command line instead of your web browser, you can try this command-line script for managing tomcat called tomcat-manager. It requires Python, but allows you to do stuff from a Unix shell like:

    $ tomcat-manager --user=admin --password=newenglandclamchowder \
    > http://localhost:8080/manager/ reload /myapp
    

    and:

    $ tomcat-manager --user=admin --password=newenglandclamchowder \
    > http://localhost:8080/manager deploy /myapp ~/src/myapp/myapp.war
    

提交回复
热议问题