lnmp添加nginx-sticky-module-1.1模块解决负载均衡会话保持问题。
来源:互联网 发布:侣皓吉吉和盛一伦 知乎 编辑:程序博客网 时间:2024/05/29 14:59
1.模块下载地址及文档地址
https://code.google.com/p/nginx-sticky-module/downloads/list
https://code.google.com/p/nginx-sticky-module/wiki/Documentation
2.进入nginx源码包编译
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --add-module=/root/nginx-sticky-module-1.1
make && make install
3.配置
upstream tt.com {
sticky expires=1h;
server 192.168.0.50:82 weight=4 max_fails=3 fail_timeout=30s;
server 192.168.0.50:81 weight=4 max_fails=3 fail_timeout=30s;
}
server
{
listen 80;
server_name hh.com;
location / {
proxy_pass http://tt.com;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
https://code.google.com/p/nginx-sticky-module/downloads/list
https://code.google.com/p/nginx-sticky-module/wiki/Documentation
2.进入nginx源码包编译
./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-ipv6 --add-module=/root/nginx-sticky-module-1.1
make && make install
3.配置
upstream tt.com {
sticky expires=1h;
server 192.168.0.50:82 weight=4 max_fails=3 fail_timeout=30s;
server 192.168.0.50:81 weight=4 max_fails=3 fail_timeout=30s;
}
server
{
listen 80;
server_name hh.com;
location / {
proxy_pass http://tt.com;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
0 0
- lnmp添加nginx-sticky-module-1.1模块解决负载均衡会话保持问题。
- nginx第三方模块---nginx-sticky-module的使用(基于cookie的会话保持)
- Nginx的负载均衡 - 保持会话 (ip_hash)
- Nginx负载均衡session会话保持方法
- Nginx+Sticky 负载均衡
- 负载均衡常见问题之会话保持-粘滞会话(Sticky Sessions)
- 负载均衡常见问题之会话保持-粘滞会话(Sticky Sessions)
- 使用nginx sticky模块实现基于cookie的负载均衡
- Nginx学习: 负载均衡session会话保持方法
- NGINX基于Cookie和Header的负载均衡会话保持
- F5负载均衡会话保持
- 负载均衡之会话保持
- 负载均衡session会话保持
- linux下nginx tomcat负载均衡 基于nginx-sticky-module进行session黏性
- Nginx+Sticky实现负载均衡(1)
- Nginx+Sticky实现负载均衡(2)
- linux-Centos-7-64位:5、 nginx代理+sticky模块实现基于cookie的负载均衡
- 负载均衡,会话保持,session同步
- asp.net 使用HttpModule对全站输出的动态页面的HTML内容进行修改,不会错乱
- unity中C#委托的应用
- 如何让Tomcat中的webapp使用不同的时区
- excel2007不显示文件名
- 算法训练 最小乘积(基本型)
- lnmp添加nginx-sticky-module-1.1模块解决负载均衡会话保持问题。
- 跳出NSDate | KeithMorning
- 基本的优化规则
- C编译器剖析_4.2 语义检查_表达式的语义检查(1)
- SQL Server附加数据库提示“版本为661,无法打开,支持655版本……”
- log4j配置
- Transact-SQL 中使用嵌套 TRY...CATCH
- 一席:方励《感谢你给我机会上场》 --- 生命的快乐
- 删除空目录