simple Terracotta session 同步

部署前提: 配置好java環境和已有tomcat實例.java

地址1:http://vdisk.weibo.com/s/dzUJr1vLcAWHllinux

地址2:http://code.taobao.org/p/myweb_project/src/trunk/MyWeb/WebContent/WEB-INF/lib/terracotta-toolkit-1.6-runtime-5.5.0_3.jarweb

地址3:https://pan.baidu.com/s/1o8B3Hyy#list/path=%2F%E6%88%91%E7%9A%84%E8%B5%84%E6%BA%90%2Fresource_aminglinux&parentPath=%2F%E6%88%91%E7%9A%84%E8%B5%84%E6%BA%90express

tar -xf terracotta-3.7.7.tar.gzvim

mv terracotta-3.7.7 /usr/local/terracottatomcat

cd  /usr/local/terracotta/config-samplesbash

cp tc-config-express-reference.xml tc-config.xmlsession

vim tc-config.xml          ------terracotta配置文件,修改如下內容;學習

 

/usr/local/terracotta3d

./bin/start-tc-server.sh           ----terraacotta單實例啓動;

如上圖,單臺terracotta,啓動成功.

 

增長tomcat配置:

# cp /usr/local/terracotta/common/terracotta-toolkit-1.6-runtime-5.7.0.jar $TOMCAT_HOME/lib/
# cp /usr/local/terracotta/sessions/terracotta-session-1.3.7.jar $TOMCAT_HOME/lib
或者直接cp這兩個到/usr/local/tomcat/lib下
 
cd  /usr/local/tomcat/conf
vim context.xml
 在行末增長如下;

tomcat+terrcaotta單實例配置完成.

一塊兒學習,進步吧,以上是本人的平常學習,工做總結,但願各位有所收穫.

相關文章
相關標籤/搜索