tomcat自动更新部署farmwardeployer属性怎么用?
apache-tomcat-7.0.69 中据说tomcat7已经有war包 自动更新部署的功能,如何设置呢?
server.xml下
<Deployer
className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/home/tomcat/war-temp/"
deployDir="/home/tomcat/war-deploy/"
watchDir="/home/tomcat/war-listen/"
watchEnabled="false"/>
这个节点中应该如何配置?
如果我有多台服务器多个tomcat组播,可以实现自动更新部署嘛?
文档中没看明白怎么用的。。。哪个高手翻译下或者指导下,谢谢大侠哦。
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/cluster/deploy/FarmWarDeployer.html
deployDir - the directory where we watch for changes
applicationDir - the directory where we install applications
tempDir - a temporaryDirectory to store binary data when downloading a war from the cluster