首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Terracotta and Tomcat Clustering - Page 二

2013-11-29 
Terracotta and Tomcat Clustering - Page 2note that we have?disabled session persistence across Tomc

Terracotta and Tomcat Clustering - Page 2

note that we have?disabled session persistence across Tomcat restarts because that is a task for Terracotta now.

Tomcat HA Configurations?

?

jvmRoute?we need to define a unique jvmRoute for each Tomcat server.

edit ${CATALINA_HOME_NODE1}\conf\server.xml, change the?Engine?tag to look like this:?
?edit?${CATALINA_HOME_NODE2}\conf\server.xml, change the?Engine?tag to look like this:?

Make sure you don't have port conflictsas i am running both Tomcats on the same box, i had to change the ports for the second Tomcat.
in?${CATALINA_HOME_NODE2}\conf\server.xml, i have changed
shutdown port: 8005 to 8006
http port: 8080 to 8081
ajp port: 8009 to 8010

Run both Tomcatsopen two more terminals and navigate to?${CATALINA_HOME_NODE1}\bin on one and?${CATALINA_HOME_NODE2}\bin on the other, on both terminals execute:?
also note that the sessions button is now active.

?

热点排行