Nginx+Tomcat+Memcached load balancing realizes Session sharing

The last time I talked about Alibaba Cloud Linux Nginx integrates Tomcat to realize load balancing cluster just simply realizes load balancing and does not realize session sharing. 1. Description Our system often saves user login information. There is a COOKIE and Session mechanism. The COOKIE client stores user information, and the Session is in The server saves user information. If the browser does not support COOKIE or the user disables the COOKIE, the COOKIE will not be used. There are also different browsers that save the COOKIE in different ways, so we use the Session server to save it. In the previous section we We have introduced the deployment of Tomcat cluster. How can Tomcat in the cluster obtain the user information stored in the Session for the same user request, and use Memcached to manage the Session. Memcached is a high-performance distributed memory object caching system. Next we Introduce Nginx+Tomcat+Memcached to realize Session sharing. two. Tomcat, Nginx, Memcached configuration The first step: Memcached installation and deployment Memcached deployment Check out this article Step 2: Installation and deployment of Nginx Check out this article Step 3: Tomcat and JDK installation and environment configuration Tomcat and JDK installation and deployment…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索