我有一个服务器运行多个JAVA应用程序与tomcat 6.0.18,我需要知道如何schedueleclosures只是'X'应用程序,并保持其他的运行。
我会感激你的想法
谢谢
看看这个: http : //tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Supported%20Manager%20Commands
或者将鼠标移动到Tomcatpipe理器Web UI上的“停止”链接,并查看状态栏,您将看到停止该应用程序的URL。 你可以通过wget,curl,lynx等脚本来调用它。
通过URL http:// ip:8080 / manager访问Tomcat Manager,您将看到正在运行的应用程序列表。 从这里,你可以停止任何你想要的webapp。
我使用wget来停止启动应用程序tomcat-user.xml中的用户必须具有pipe理员脚本angular色对于TOMCAT 5,6:
wget "http://<user>:<password>@<servername>:<port>/manager/stop?=/<application context>" -O - -q wget "http://<user>:<password>@<servername>:<port>/manager/start?=/<application context>" -O - -q
由于TOMCAT 7(我的安装7.0.62),你必须添加/文本/后经理:
wget "http://<user>:<password>@<servername>:<port>/manager/text/stop?=/<application context>" -O - -q wget "http://<user>:<password>@<servername>:<port>/manager/text/start?=/<application context>" -O - -q
希望这是有帮助的