Deployment of war file on Tomcat

后端 未结 6 1311
野趣味
野趣味 2021-01-31 20:05

Is there a way to deploy a given war file on Tomcat server? I want to do this without using the web interface.

6条回答
  •  忘了有多久
    2021-01-31 20:34

    You can also try this command-line script for managing tomcat called tomcat-manager. It requires Python, and talks to the manager application included with tomcat via HTTP. You can do stuff from a *nix shell like:

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

    and:

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

提交回复
热议问题