Tomcat 7 Manager脚本停止/启动应用程序

时间:2012-11-22 18:37:36

标签: tomcat deployment tomcat7

我正在使用来自7.0.32的Tomcat 7和Manager。

curl -X PUT http://user:password@server:port/manager/text/deploy?path=/app
OK - it works

curl -X PUT http://user:password@server:port/manager/text/list
FAIL - Unknown command /list
Same with stop : 
FAIL - Unknown command /stop

但在官方文件中: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Stop_an_Existing_Application 清楚地说明这个命令存在。

我错过了什么?

1 个答案:

答案 0 :(得分:7)

好的......非常简单的答案:这不是PUT它是一个GET。

curl -X GET http://user:password@server:port/manager/text/list

使用tomcat + ant时,我使用wireshark来监听我的机器。 (http://paulgrenyer.blogspot.in/2011/11/catalina-ant-for-tomcat-7.html