Providing an update to this question.
Tomcat 7 has changed it's manager API.
Please refer to:
Manager commands
Following new URL pattern :
http://{host}:{port}/manager/text/{command}?{parameters}
Example
curl -T "myapp.war" "http://manager:manager@localhost:8080/manager/text/deploy?path=/myapp&update=true"
Security
Keep in mind the server must be able to accept your remote IP. This is a sample configuration:
<Context privileged="true" antiResourceLocking="false"
docBase="${catalina.home}/webapps/manager">
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127.0.0.1" />
</Context>
This is an optional setting and isn't required but having Cross domain role and proper manager credentials is a must.
Tomcat 8 - the same rules apply as Tomcat 7. Same commands.
Here is a full documentation:
http://tomcat.apache.org/tomcat-8.0-doc/manager-howto.html
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…