web-applications – 在特定时间重启一个tomcat 7 webapp?

前端之家收集整理的这篇文章主要介绍了web-applications – 在特定时间重启一个tomcat 7 webapp?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Tomcat 7正在 Windows系统上运行.我需要每天在特定时间重新启动其中一个deplyoed Web应用程序.
是否可以选择通过脚本或(更好)tomcat提供这样做的功能

是否可以使用Curl模拟“列表应用程序”页面上的重新加载按钮上的单击?

解决方法

curl --user admin:admin http://localhost:8080/manager/text/reload?path=/myapp

Doc这里:Manager App HOW-TO,Reload An Existing Application

用户需要manager-script角色,因为文档说:

It would be quite unsafe to ship Tomcat with default settings that
allowed anyone on the Internet to execute the Manager application on
your server. Therefore,the Manager application is shipped with the
requirement that anyone who attempts to use it must authenticate
themselves,using a username and password that have the role
manager-script associated with them. Further,there is no username in
the default users file ($CATALINA_BASE/conf/tomcat-users.xml) that is
assigned this role. Therefore,access to the Manager application is
completely disabled by default.

注意:Tomcat 6使用不同的管理URL. (Apache Tomcat 6.0 Manager App HOW-TO)

原文链接:https://www.f2er.com/html/229403.html

猜你在找的HTML相关文章