1. Create the file named /etc/yum.repos.d/nginx.repo with the following contents:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1
Replace “OS” with “rhel” or “centos”, depending on the distribution used, and “OSRELEASE” with “5”, “6”, or “7”,
for 5.x, 6.x, or 7.x versions, respectively.
2.
yum install nginx
3.
export JAVA_HOME=/usr/jdk1.6.0_45
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
4.
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
redis-server /etc/redis/xxxx.conf
redis-cli shutdown
5.
<Context path="" docBase="ajax" debug="0" reloadable="false">
<Valve className="com.radiadesign.catalina.session.RedisSessionHandlerValve" />
<Manager className="com.radiadesign.catalina.session.RedisSessionManager"
host="127.0.0.1"
port="6379"
database="0"
maxInactiveInterval="60"/>
</Context>
十一月 07, 2015 9:23:43 上午 com.radiadesign.catalina.session.RedisSessionManager loadSessionFromRedis
严重: writing aborted; java.io.NotSerializableException: com.letou.backstage.user.service.impl.UserServiceImpl$$EnhancerByCGLIB$$c34f83da
十一月 07, 2015 9:23:43 上午 com.radiadesign.catalina.session.RedisSessionManager loadSessionFromRedis
严重: writing aborted; java.io.NotSerializableException: com.letou.backstage.user.service.impl.UserServiceImpl$$EnhancerByCGLIB$$a926a6a5
十一月 07, 2015 9:23:43 上午 com.radiadesign.catalina.session.RedisSessionManager loadSessionFromRedis
严重: writing aborted; java.io.NotSerializableException: com.letou.backstage.user.service.impl.UserServiceImpl$$EnhancerByCGLIB$$a926a6a5
十一月 07, 2015 9:23:43 上午 com.radiadesign.catalina.session.RedisSessionManager loadSessionFromRedis
严重: writing aborted; java.io.NotSerializableException: com.letou.backstage.user.service.impl.UserServiceImpl$$EnhancerByCGLIB$$a926a6a5
十一月 07, 2015 9:23:43 上午 com.radiadesign.catalina.session.RedisSessionManager loadSessionFromRedis
严重: writing aborted; java.io.NotSerializableException: com.letou.backstage.user.service.impl.UserServiceImpl$$EnhancerByCGLIB$$a926a6a5
严重: writing aborted; java.io.NotSerializableException: com.letou.backstage.user.service.impl.UserServiceImpl$$EnhancerByCGLIB$$88db2021
NotSerializableException: org.springframework.orm.hibernate3.HibernateTemplate
ref:
http://ari.iteye.com/blog/833153
http://www.iteye.com/topic/675914
http://www.iteye.com/topic/676347
http://www.iteye.com/topic/688924
http://aokunsang.iteye.com/blog/2053719
http://blog.youkuaiyun.com/zxl315/article/details/10830105
http://www.cnblogs.com/haoxinyue/p/3620648.html ----redis installation
http://blog.youkuaiyun.com/tengdazhang770960436/article/details/46757225 - tomcat+redis
http://www.oschina.net/question/12_24613 session sticky
http://blog.youkuaiyun.com/dc_726/article/details/12348907 nginx session sticky module
本文详细介绍了如何在Tomcat中整合Redis实现会话粘性,并解决部署过程中遇到的序列化异常问题,包括配置文件修改、安装步骤及异常排查。
6388

被折叠的 条评论
为什么被折叠?



