首先先了解什么是nginx:
http://cxshun.iteye.com/blog/1535188

图片来自其他
从上图可以了解到整个集群的部署框架
安装地址:
http://www.iteye.com/topic/1125301
nginx 配置后出现的问题:
js,css,png...等显示不了?
多次搜索了”nginx css,js,png无法显示“却没有得到答案,突然发现:
- location / {
- proxy_pass http:
- proxy_redirect default;
- proxy_connect_timeout 10; (跟代理服务器连接的超时时间,必须留意这个time out时间不能超过10秒.当一台服务器当掉时,过10秒转发到另外一台服务器)
- }
上面没有添加头格式!如下:
- proxy_set_header X-Real-IP $remote_addr;
- client_max_body_size 100m;
nginx memcache tomcat 集群 负载均衡
原文:http://www.cnblogs.com/huangjiandong2012/p/4126751.html