负载均衡



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.csdn.net/zxl315/article/details/10830105
http://www.cnblogs.com/haoxinyue/p/3620648.html      ----redis installation
http://blog.csdn.net/tengdazhang770960436/article/details/46757225  - tomcat+redis
http://www.oschina.net/question/12_24613              session sticky
http://blog.csdn.net/dc_726/article/details/12348907      nginx session sticky module









评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值