配置启动环境变量, 进入 tomcat_2 目录, 编辑其 bin/catalina.sh, 找到OS specific support. $var _must_ be set to either true or false., 插入 tomcat2 的环境变量
1 2 3 4 5
# OS specific support. $var _must_ be set to either true or false. # 添加tomcat2 环境变量 export CATALINA_BASE=$CATALINA_2_BASE export CATALINA_HOME=$CATALINA_2_HOME ...
<Context> <!-- web application will be reloaded. --> <WatchedResource>WEB-INF/web.xml</WatchedResource> <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts --> <!-- <Manager pathname="" /> --> <Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager" memcachedNodes="n1:127.0.0.1:11211,n2:127.0.0.1:22122" failoverNodes="n1" requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" /> </Context>