问题描述
我的公司正在准备一个新的生产箱,而现在正在运行。我想主动地在新的生产箱的Tomcat容器中安装应用程序,但是希望将其禁用(类似于Websphere中存在的功能) - 这非常重要,因为一些应用程序会轮询数据库中的数据并启动应用程序会干扰当前的生产部署。它们将在生产切换时启用。我该如何实现?任何见解将不胜感激。
您可以在webapp内重新命名de WEB-INF目录,您不需要在启动tomcat之前自动启动一些其他名称,如 Disabled-WEB-INF
。
之后,如果您希望启动该应用程序,而tomcat正在运行,只需将目录重命名为WEB-INF。
My company is preparing a new production box while the current one is running. I would like to proactively install applications in Tomcat container of the new production box but would like to keep them disabled (similar to the feature present in Websphere) - this is very important because some of the applications poll for the data from the database and starting an application would interfere with current production deployment. They would be enabled at the time of production switch-over.
How would I accomplish this? Any insight would be greatly appreciated.
You can simply rename de WEB-INF directory inside the webapp that you don't want to auto-start to some other name like Disabled-WEB-INF
, before starting tomcat.
Later on, if you wish to start that app, while tomcat is running, simply rename back the directory to WEB-INF.
这篇关于如何在Tomcat启动期间禁用特定应用程序启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!