How to deploy war file to tomcat using command prompt?

后端 未结 8 979
慢半拍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:20

    As you have already copied the war file to tomcat/webapps, you just need to restart the tomcat to deploy the war file.

    Command prompt:

    set tomcatPath=D:\apache-tomcat-7.0.50
    call "%tomcatPath%"\bin\catalina.bat **stop**
    sleep -m 3000 
    call "%tomcatPath%"\bin\catalina.bat jpda **start**
    

提交回复
热议问题