Tomcat热部署
八月 13, 2009 | 标签 tomcat | 浏览
评论 0
翻译的很烂,大家发现了什么错误尽管提:
It is possible to deploy web applications to a running Tomcat server.
可以在一个运行着的Tomcat中配置一个web运用程序。
If the Host autoDeploy attribute is "true", the Host will attempt to deploy and update web applications dynamically, as needed, for example if a new .WAR is dropped into the appBase. For this to work, the Host needs to have background processing enabled which is the default configuration.
如果tomcat host的autoDeploy属性已设置为“true”,Host将尝试动态的部署并更新一个web运用程序。根据需要,例如如果一个新的“.WAR”要加入到appBase。要让它正常工作,Host必须有个后台处理动作在配置文件中激活它。
autoDeploy set to "true" and a running Tomcat allows for:
运行中的tomcat的autoDeploy设置为“true”
- Deployment of .WAR files copied into the Host appBase.
- 将需部署的.WAR拷贝到HOST的appBase目录中。
- Deployment of exploded web applications which are copied into the Host appBase.
- 将需部署的web运用程序拷贝到HOST的appBase目录中。
- Re-deployment of a web application which has already been deployed from a .WAR when the new .WAR is provided. In this case the exploded web application is removed, and the .WAR is expanded again. Note that the explosion will not occur if the Host is configured so that .WARs are not exploded with a unpackWARs attribute set to "false", in which case the web application will be simply redeployed as a compressed archive.
- 当一个新的.WAR已经预备好时,从这个WAR中重新部署web运用程序。在这个例子中被暴掉的运用程序被删除,.WAR包将被展开
- Re-deployment of a web application if the /WEB-INF/web.xml file (or any other resource defined as a WatchedResource) is updated.
- 当/WEB-INF/web.xml文件进行过更新时,进行重新部署
- Re-deployment of a web application if the Context Descriptor file from which the web application has been deployed is updated.
- 当web应用程序部署过的Context描述文件发生变化时,进行重新部署
- Re-deployment of a web application if a Context Descriptor file (with a filename corresponding to the Context path of the previously deployed web application) is added to the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.
- 当$CATALINA_HOME/conf/[enginename]/[hostname]/目录中有新增的Context描述文件时,进行重新部署
- Undeployment of a web application if its document base (docBase) is deleted. Note that on Windows, this assumes that anti-locking features (see Context configuration) are enabled, otherwise it is not possible to delete the resources of a running web application.
- 如果docBase文件夹被删除,不会进行重新部署。这些文件将记录到操作系统。并假定防锁属性(见context 配置文件安)被激活了。因此删除一个运行中的web运用程序是不可能的。