1. 首页
  2. IT资讯

Redis + Tomcat + Nginx 集群实现 Session 共享

“u003Cpu003EJava后端,选择 u003Cu002Fpu003Eu003Cpu003E优质文章,及时送达u003Cu002Fpu003Eu003Cimg src=”http:u002Fu002Fp1.pstatp.comu002Flargeu002Fpgc-imageu002FRcsUnd92eoboDR” img_width=”640″ img_height=”29″ alt=”Redis + Tomcat + Nginx 集群实现 Session 共享” inline=”0″u003Eu003Cpu003E作者 | 蕃薯耀u003Cu002Fpu003Eu003Cpu003E链接 | u003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Ewwwu003Cu002Fiu003E.cnblogsu003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-6″u003E.comu003Cu002Fiu003Eu002Ffanshuyaou003Cu002Fpu003Eu003Cpu003E上篇 | 35 个小细节,提升 Java 代码运行效率u003Cu002Fpu003Eu003Cpu003Eu003Cstrong toutiao-origin=”span”u003E一、Session共享使用tomcat-cluster-redis-session-manager插件实现u003Cu002Fstrongu003Eu003Cu002Fpu003Eu003Cblockquoteu003Eu003Cdivu003Eu003Cpu003E插件地址见:u003Cu002Fpu003Eu003Cpu003Ehttps:u002Fu002Fgithubu003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-6″u003E.comu003Cu002Fiu003Eu002Fran-jitu002Ftomcat-cluster-redis-session-manageru003Cu002Fpu003Eu003Cu002Fdivu003Eu003Cu002Fblockquoteu003Eu003Cpu003E该插件支持Tomcat7、Tomcat8、Tomcat9u003Cu002Fpu003Eu003Cpu003E或者直接在附件中下载(版本为2.0.2,2017-11-27日前最新版本)u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003Ehttp:u002Fu002Fdl.iteyeu003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-6″u003E.comu003Cu002Fiu003Eu002Ftopicsu002Fdownloadu002Fd9fffd9d-84u003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Eddu003Cu002Fiu003E-385b-b10e-6376eaf0c815u003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cpu003E这里有是一个只支持Tomcat7的,不支持tomcat8,暂时不见新的维护:u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003Ehttps:u002Fu002Fgithubu003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-6″u003E.comu003Cu002Fiu003Eu002Fjcolemanu002Ftomcat-redis-session-manageru003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cpu003Eu003Cstrong toutiao-origin=”span”u003E二、tomcat-cluster-redis-session-manager详解u003Cu002Fstrongu003Eu003Cu002Fpu003Eu003Cpu003E1、解压后的文件如下:u003Cu002Fpu003Eu003Cimg src=”http:u002Fu002Fp3.pstatp.comu002Flargeu002Fpgc-imageu002FRgjm8gCEX7Qb3s” img_width=”688″ img_height=”172″ alt=”Redis + Tomcat + Nginx 集群实现 Session 共享” inline=”0″u003Eu003Cpu003Econf目录下有一个redis-data-cache.properties :u003Cu002Fpu003Eu003Cpu003ERedis的配置文件u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E#– Redis data-cache configurationu003Cbru003Eu003Cbru003E#- redis hosts ex: 127.0.0.1:63u003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-5″u003E79u003Cu002Fiu003E, 127.0.0.2:63u003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-5″u003E79u003Cu002Fiu003E, 127.0.0.2:6380, ….u003Cbru003Eredis.hosts=127.0.0.1:63u003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-5″u003E79u003Cu002Fiu003Eu003Cbru003Eu003Cbru003E#- redis password (for stand-alone mode)u003Cbru003E#redis.password=u003Cbru003Eu003Cbru003E#- set true to enable redis cluster modeu003Cbru003Eredis.cluster.enabled=falseu003Cbru003Eu003Cbru003E#- redis database (default 0)u003Cbru003E#redis.database=0u003Cbru003Eu003Cbru003E#- redis connection timeout (default 2000)u003Cbru003E#redis.timeout=2000u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003Eib目录下有4个jar包,如下:u003Cu002Fpu003Eu003Cpu003E1. commons-logging-1.2.jaru003Cu002Fpu003Eu003Cpu003E2. commons-pool2-2.4.2.jaru003Cu002Fpu003Eu003Cpu003E3. jedis-2.9.0.jaru003Cu002Fpu003Eu003Cpu003E4. tomcat-cluster-redis-session-manager-2.0.1.jaru003Cu002Fpu003Eu003Cpu003Eu003Cu002Fpu003Eu003Ch1 toutiao-origin=”h5″u003E三、使用方法:u003Cu002Fh1u003Eu003Cpu003E压缩文件中有使用方法,见readMe.txt 文件:u003Cu002Fpu003Eu003Cpu003E第一步:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E1. Move the downloaded jars to tomcatu002Flib directoryu003Cbru003E* tomcatu002Flibu002Fu003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E就是把lib目录下的Jar包全复制到tomcatu002Flib目录下u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003E(一般来说tomcat是集群,至少有2个tomcat,所以先配置好一个tomcat,复制完文件后,再将tomcat文件重新复制一份,这样省事,但需要修改tomcat相应的端口)u003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cpu003E第二步:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E2. Au003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Eddu003Cu002Fiu003E tomcat system property “catalina.base” u003Cbru003E* catalina.base=”TOMCAT_LOCATION”u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E就是配置一个环境变量,和Jdk配置的环境变量一样,需要配置一个catalina.base的环境变量,值为TOMCAT_LOCATIONu003Cu002Fpu003Eu003Cpu003E如下:u003Cu002Fpu003Eu003Cimg src=”http:u002Fu002Fp9.pstatp.comu002Flargeu002Fpgc-imageu002FRgjm8gS27CtEud” img_width=”965″ img_height=”575″ alt=”Redis + Tomcat + Nginx 集群实现 Session 共享” inline=”0″u003Eu003Cimg src=”http:u002Fu002Fp3.pstatp.comu002Flargeu002Fpgc-imageu002FRgjm8gpC77zBFw” img_width=”629″ img_height=”663″ alt=”Redis + Tomcat + Nginx 集群实现 Session 共享” inline=”0″u003Eu003Cpu003E第三步:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E3. Extract downloaded package (tomcat-cluster-redis-session-manager.zip) to configure Redis credentials in redis-data-cache.properties file and move the file to tomcatu002Fconf directoryu003Cbru003E* tomcatu002Fconfu002Fredis-data-cache.propertiesu003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E把conf目录下的配置文件redis-data-cache.properties复制到tomcatu002Fconfu002F目录下u003Cu002Fpu003Eu003Cpu003E第四步:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E4. Au003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Eddu003Cu002Fiu003E the below two lines in tomcatu002Fconfu002Fcontext.xmlu003Cbru003E<Valve className=”tomcat.request.session.redis.SessionHandlerValve” u002F>u003Cbru003E<Manager className=”tomcat.request.session.redis.SessionManager” u002F>u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E在tomcatu002Fconfu002F目录下的context.xml文件,加上相应的配置,如下:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E<?xml version=”1.0″ encoding=”UTF-8″?> u003Cbru003Eu003Cbru003E<!–u003Cbru003ELicensed to the Apache Software Foundation (ASF) under one or moreu003Cbru003Econtributor license agreements. See the NOTICE file distributed withu003Cbru003Ethis work for au003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Eddu003Cu002Fiu003Eitional information regarding copyright ownership.u003Cbru003EThe ASF licenses this file to You under the Apache License, Version 2.0u003Cbru003E(the “License”); you may not use this file except in compliance withu003Cbru003Ethe License. You may obtain a copy of the License atu003Cbru003Eu003Cbru003Ehttp:u002Fu002Fu003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Ewwwu003Cu002Fiu003E.apache.orgu002Flicensesu002FLICENSE-2.0u003Cbru003Eu003Cbru003EUnless required by applicable law or agreed to in writing, softwareu003Cbru003Edistributed under the License is distributed on an “AS IS” BASIS,u003Cbru003EWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.u003Cbru003ESee the License for the specific language governing permissions andu003Cbru003Elimitations under the License.u003Cbru003E–><!– The contents of this file will be loaded for each web application –><Context>u003Cbru003Eu003Cbru003E<!– Default set of monitored resources. If one of these changes, the –>u003Cbru003E<!– web application will be reloaded. –>u003Cbru003E<WatchedResource>WEB-INFu002Fweb.xml<u002FWatchedResource>u003Cbru003E<WatchedResource>${catalina.base}u002Fconfu002Fweb.xml<u002FWatchedResource>u003Cbru003Eu003Cbru003E<!– Uncomment this to disable session persistence across Tomcat restarts –>u003Cbru003E<!–u003Cbru003E<Manager pathname=”” u002F>u003Cbru003E–>u003Cbru003Eu003Cbru003E<!– Uncomment this to enable Comet connection tacking (provides eventsu003Cbru003Eon session expiration as well as webapp lifecycle) –>u003Cbru003E<!–u003Cbru003E<Valve className=”org.apache.catalina.valvesu003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-6″u003E.Comu003Cu002Fiu003EetConnectionManagerValve” u002F>u003Cbru003E–>u003Cbru003E<Valve className=”tomcat.request.session.redis.SessionHandlerValve”u002F>u003Cbru003E<Manager className=”tomcat.request.session.redis.SessionManager”u002F>u003Cbru003Eu003Cbru003E<u002FContext>u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E第五步:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E5. Verify the session expiration time (minutes) in tomcatu002Fconfu002Fweb.xmlu003Cbru003E<session-config>u003Cbru003E<session-timeout>60<session-timeout>u003Cbru003E<session-config>u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E修改session的过期时间,默认是30分钟,可以不需要此步骤。u003Cu002Fpu003Eu003Cpu003Esession集群的配置至此结束。u003Cu002Fpu003Eu003Cpu003Eu003Cu002Fpu003Eu003Ch1 toutiao-origin=”h5″u003E四、Nginx集群u003Cu002Fh1u003Eu003Cpu003E1、下载Nignx:u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003Ehttp:u002Fu002Fnginx.orgu002Fenu002Fdownload.htmlu003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cpu003E本人练习时使用windows,所以下载的windows版本:u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003Ehttp:u002Fu002Fnginx.orgu002Fdownloadu002Fnginx-1.13.7.zipu003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cpu003E2、下载后解压:D:\soft\nginx-1.12.2u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003E(之前使用的是1.12.2的版本,现在最新版是1.13.7,但都一样,附件中有1.12.2版本提供下载)u003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cimg src=”http:u002Fu002Fp1.pstatp.comu002Flargeu002Fpgc-imageu002FRgjm8h6oaJuTd” img_width=”622″ img_height=”233″ alt=”Redis + Tomcat + Nginx 集群实现 Session 共享” inline=”0″u003Eu003Cpu003E3、修改Nginx配置文件nginx.confu003Cu002Fpu003Eu003Cpu003E进入conf目录(D:\soft\nginx-1.12.2\conf),找到nginx.conf配置文件,打开编辑:u003Cu002Fpu003Eu003Cpu003E3.1在http{……}里加上upstream,如下:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Eupstream myTomcatCluster{# tomcatCluster和proxy_pass保持一样u003Cbru003E#解决session的问题u003Cbru003E#ip_hash;#加上这个,解决Session每次访问页面都不一样,加上就一样了。u003Cbru003Eu003Cbru003E#这里是tomcat的地址,weight越大,访问机率越大。u003Cbru003Eserver 127.0.0.1:9300 weight=1 fail_timeout=5s max_fails=1;u003Cbru003Eserver 127.0.0.1:9400 weight=1 fail_timeout=5s max_fails=1;u003Cbru003E}u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003Eserver:配置tomcat服务器请求的地址,2台Tomcat服务就配置2个server,分别对应9300,9400端口u003Cu002Fpu003Eu003Cpu003Eweight 表示权重,权重越大,访问到的机率越大。u003Cu002Fpu003Eu003Cpu003E3.2、修改location u002F {……}u003Cu002Fpu003Eu003Cpu003E默认是这个的:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Elocation u002F {u003Cbru003Eroot html;u003Cbru003Eindex index.html index.htm;u003Cbru003E}u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E修改成这样:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Elocation u002F {u003Cbru003E#root html;u003Cbru003Eproxy_pass http:u002Fu002FmyTomcatCluster;u003Cbru003E#index index.html index.htm;u003Cbru003Eproxy_set_header Host $host;u003Cbru003Eproxy_set_header X-Real-IP $remote_au003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Eddu003Cu002Fiu003Er;u003Cbru003Eproxy_set_header X-Forwarded-For $proxy_au003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Eddu003Cu002Fiu003E_x_forwarded_for;u003Cbru003Eproxy_connect_timeout 1;u003Cbru003Eproxy_read_timeout 1;u003Cbru003Eproxy_send_timeout 1;u003Cbru003E}u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E最简单的配置就是:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Elocation u002F {u003Cbru003Eproxy_pass http:u002Fu002FmyTomcatCluster;u003Cbru003E}u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003EmyTomcatCluster 对应upstream后的命名。u003Cu002Fpu003Eu003Cpu003E下面的配置可以解决2个Tomcat服务器集群,当一台服务器挂掉(宕机)后,请求变得很慢的问题。u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003E(Tomcat集群一台服务器挂掉后请求变慢解决方案)u003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cpreu003Eu003Ccodeu003Eproxy_connect_timeout 1;u003Cbru003Eproxy_read_timeout 1;u003Cbru003Eproxy_send_timeout 1;u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E3.3、启动Nginx服务器u003Cu002Fpu003Eu003Cpu003E使用Windows命令行启动u003Cu002Fpu003Eu003Cpu003E(1)进入D盘:d:u003Cu002Fpu003Eu003Cpu003E(2)进入D:\soft\nginx-1.12.2目录:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Ecd D:\soft\nginx-1.12.2u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E(3)启动服务:(启动一闪而过,但打开进程管理器能看到是已经启动的)u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Estart nginxu003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E关闭服务的命令:nginx -s stopu003Cu002Fpu003Eu003Cpu003E重新加载的命令:nginx -s reload,修改配置文件后,可以使用该命令直接加载,不需要重启。u003Cu002Fpu003Eu003Cpu003Eu003Cu002Fpu003Eu003Ch1 toutiao-origin=”h5″u003E五、测试集群:u003Cu002Fh1u003Eu003Cpu003E1、tomcat准备u003Cu002Fpu003Eu003Cpu003E将已经配置好的一个tomcat复制一份,修改端口,然后再修改一下tomcat的配置文件(server.xml)u003Cu002Fpu003Eu003Cpu003E我的一个tomcat在:u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003ED:\soft\apache-tomcat-8.0.45-9300\confu003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cpu003E另一个是:u003Cu002Fpu003Eu003Cblockquoteu003Eu003Cpu003ED:\soft\apache-tomcat-8.0.45-9400\confu003Cu002Fpu003Eu003Cu002Fblockquoteu003Eu003Cpu003E修改:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E<Engine defaultHost=”localhost” name=”Catalina”>u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E其中tomcat 9300端口的修改如下:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E<Engine defaultHost=”localhost” jvmRoute=”jvm9300″ name=”Catalina”>u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003Etomcat 9400端口的修改如下:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E<Engine defaultHost=”localhost” jvmRoute=”jvm9400″ name=”Catalina”>u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E2、项目准备:u003Cu002Fpu003Eu003Cpu003E新建立一个web项目,然后新建立一个index.jsp的文件,如下:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E<%@ page language=”java” contentType=”textu002Fhtml; charset=UTF-8″ u003Cbru003EpageEncoding=”UTF-8″%>u003Cbru003E<!DOCTYPE html PUBLIC “-u002Fu002FW3Cu002Fu002FDTD HTML 4.01 Transitionalu002Fu002FEN” “http:u002Fu002Fu003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-2″u003Ewwwu003Cu002Fiu003E.w3.orgu002FTRu002Fhtml4u002Floose.dtd”>u003Cbru003E<html>u003Cbru003E<head>u003Cbru003E<meta http-equiv=”Content-Type” content=”textu002Fhtml; charset=UTF-8″>u003Cbru003E<title>首页redis-session<u002Ftitle>u003Cbru003E<u002Fhead>u003Cbru003E<body>u003Cbru003E<div>tomcat 集群测试<u002Fdiv>u003Cbru003E<div>u003Cbru003E<%u003Cbru003Eu002Fu002FHttpSession session = request.getSession(true);u003Cbru003ESystem.out.println(session.getId);u003Cbru003Eout.println(“<br> SESSION ID:” + session.getId+”<br>”);u003Cbru003E%>u003Cbru003E<u002Fdiv>u003Cbru003E<u002Fbody>u003Cbru003E<u002Fhtml>u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E主要是在打印页面输出sessionId的信息:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Eout.println(“<br> SESSION ID:” + session.getId+”<br>”);u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E然后把这个项目分别部署到9300、9400端口的2个tomcat中,分别启动,记得也启动Nginx和redis哦u003Cu002Fpu003Eu003Cpu003E然后打开浏览器通过地址访问项目:http:u002Fu002Flocalhostu002Fredis-sessionu002F (使用Nginx集群分发,不需要端口号访问),显示如下:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Etomcat 集群测试u003Cbru003Eu003Cbru003ESESSION ID:B837ECA85B47081EAA2FEFCD7E5u003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-5″u003E79u003Cu002Fiu003ECD2.jvm9400u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E无论怎么刷新访问(打开新的标签页也是(非新窗口))的都是jvm9400,也就是端口号为9400的tomcatu003Cu002Fpu003Eu003Cpu003E后缀.jvm9400就是前面配置的:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003E<Engine defaultHost=”localhost” jvmRoute=”jvm9400″ name=”Catalina”>u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E打开新的隐身窗口访问:u003Cu002Fpu003Eu003Cpreu003Eu003Ccodeu003Etomcat 集群测试u003Cbru003Eu003Cbru003ESESSION ID:83BBA58F4EB7B2EFF90AE05D4A0629FD.jvm9300u003Cu002Fcodeu003Eu003Cu002Fpreu003Eu003Cpu003E这时访问的是端口号为9300的tomcat,通过后缀.jvm9300判断知道。u003Cu002Fpu003Eu003Cpu003E新窗口每次访问的是都是tomcat9300,session也不会变。u003Cu002Fpu003Eu003Cpu003E在访问后缀为.jvm9400时,把端口9400的tomcat关掉,再次刷新访问,sessionId一样不变,由此可见,2个tomcat的sessionId是共享的。u003Cu002Fpu003Eu003Cpu003E使用Redis实现session共享的好处就是,把session管理放在redis中,如果服务器重启或挂机,sessionId保存在redis中,下次重启后一样生效,避免sessionId失效,同样redis最好也做集群,避免redis重启或挂机。u003Cu002Fpu003Eu003Cp class=”pgc-end-source”u003E-END-u003Cu002Fpu003Eu003Cp class=”pgc-end-source”u003E如果看到这里,说明你喜欢这篇文章,请转发、点赞。u003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-1″u003E微信u003Cu002Fiu003E搜索「web_resource」,u003Ci class=”chrome-extension-mutihighlight chrome-extension-mutihighlight-style-1″u003E关注u003Cu002Fiu003E后回复「进群」或者扫描下方二维码即可进入无广告交流群。u003Cu002Fpu003Eu003Cp class=”pgc-end-source”u003E喜欢文章,点个在看 u003Cu002Fpu003Eu003Cimg src=”http:u002Fu002Fp3.pstatp.comu002Flargeu002Fpgc-imageu002FReU3KFq9FXVax2″ img_width=”1071″ img_height=”742″ alt=”Redis + Tomcat + Nginx 集群实现 Session 共享” inline=”0″u003E”

原文始发于:Redis + Tomcat + Nginx 集群实现 Session 共享

主题测试文章,只做测试使用。发布者:逗乐男神i,转转请注明出处:http://www.cxybcw.com/17816.html

联系我们

13687733322

在线咨询:点击这里给我发消息

邮件:1877088071@qq.com

工作时间:周一至周五,9:30-18:30,节假日休息

QR code