How to deploy war file to tomcat using command prompt?

后端 未结 8 810
慢半拍i
慢半拍i 2021-01-30 11:05

I have created a war file and put into tomcat/webapps. How to deploy a war file to tomcat using command prompt?

8条回答
  •  心在旅途
    2021-01-30 11:26

    You can deploy the war file using tomcat manager app, http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_Remotely

    If you want from command prompt, then as I know

    • Stop tomcat (catalina.bat stop)
    • copy war to webapp
    • restart tomcat (catalina.bat run)

提交回复
热议问题