8session一致性
2019-10-19 本文已影响0人
文茶君
https://www.cnblogs.com/study-everyday/p/7853145.html
分布式session一致性问题

安装jdk,因为安装tomcat必须安装环境


配置javahome






进入tomcat的index。jsp修改主页





upstream 模块,将使 Nginx 跨越单机的限制,完成网络数据的接收、处理和转发。
数据转发功能,为 Nginx 提供了跨越单机的横向处理能力,使 Nginx 摆脱只能为终端节点提供单一功能的限制,而使它具备了网路应用级别的拆分、封装和整合的战略功能。在云模型大行其道的今天,数据转发是 Nginx 有能力构建一个网络应用的关键组件。当然,鉴于开发成本的问题,一个网络应用的关键组件一开始往往会采用高级编程语言开发。但是当系统到达一定规模,并且需要更重视性能的时候,为了达到所要求的性能目标,高级语言开发出的组件必须进行结构化修改。此时,对于修改代价而言,Nginx 的 upstream 模块呈现出极大的吸引力,因为它天生就快。作为附带,Nginx 的配置系统提供的层次化和松耦合使得系统的扩展性也达到比较高的程度。
upstream模块
http://tengine.taobao.org/book/chapter_05.html

配置两台tomcat



关闭两台tomcat,安装memcached







上传jar包,拷贝jar包







修改时间,


此时session过期,会刷新session