Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The tomcat server sets Session from the memcached cache

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

1. Add the jar package to the lib of tomcat. The jar package directory is as follows (192.168.2.140 and 192.168.2.136).

two。 Modify the configuration file server.xml of tomcat, in, add jvmRoute, add the name of jvmRoute as tomcat1,tomcat2 same operation tomcat under vi server.xml#192.168.2.140 add # 192.168.2.136 add tomcat under

3. Modify index.jsp in tomcat1 and index.jspvi server.xml in tomcat2

SessionID:SessionIP:tomcat1

SessionID:SessionIP:tomcat2

4. Start tomcat./startup.sh

5. When visiting 192.168.2.140 8080 and 192.168.2.136 8080 respectively, we can see that the VLSI is inconsistent.

6. Configure the context.xml file in the conf directory in tomcat and add the following

7. Restart tomcat and access to view. / shutdown.sh./startup.sh

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report