Nginx+tomcat+redis (single point)

Source: Internet
Author: User

Service configuration: Number of 3 units: Tomcat_69  tomcat_108  nginx_134 redis: Installed on the tomcat_69 above, The port is 63791. Copy the Redis-tomcat dependency package to the/usr/local/tomcat7/lib directory: http://down.51cto.com/data/21260362. Configuring Tomcat_ 69 under the Context.xml[[email protected]_server conf]# vim /usr/local/tomcat7/conf/context.xml <valve classname= "Com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve"  />< Manager classname= "Com.orangefunction.tomcat.redissessions.RedisSessionManager"  host= "localhost"  port= "6379"  database= "0"  maxinactiveinterval= "/>3". tomcat_108 under Configuration context.xml[[email  Protected]_server ~]# vim /usr/local/tomcat7/conf/context.xml<valve classname= " Com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve " /><manager classname=" Com.orangefunction.tomcat.redissessions.RedisSessionManager " host=" 10.200.134.69 " port=" 6379 "  database= "0"  maxinactiveinterval= "/>4". Edit a Tomcat test page   vim /usr/local/tomcat7/webapps/root/index.jsp<%@ page language= "Java"  %>
8. #查看redis [[Email protected]_server lib]# redis-cli 127.0.0.1:6379> KEYS] "31cc406da697e01839c9b04c1cadcb05" 2) " 4865467a9dc8da88c3eee06731d81606 "3)" e029f555ee14331949d4ca53d3374890 "127.0.0.1:6379>


This article is from the "9527" blog, please be sure to keep this source http://liangey.blog.51cto.com/9097868/1722140

Nginx+tomcat+redis (single point)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.