摘要: 原文地址:http://www.cnblogs.com/jiji262/p/3410518.html 前言 在印象中,浏览器中的F5和刷新按钮是一样的效果,都是对当前页面进行刷新;Ctrl-F5的行为也是刷新页面,但是会清除浏览器缓存,这在前端调试时候会常用。二者真正的区别是什么呢?在stackov 阅读全文
posted @ 2016-06-12 14:02 maxomnis 阅读(1590) 评论(0) 推荐(0) 编辑
摘要: 1.http重定向负载均衡 http重定向服务器是一台普通的应用服务器,其唯一的功能就是根据用户的http请求计算一台真实的web服务器地址,并将该web服务器地址写入http重定向响应中(Location头) 状态码是302,返回给用户浏览器。负载服务器和web服务器,都是公网的IP。 这种负载均 阅读全文
posted @ 2016-06-11 14:09 maxomnis 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 由于负载均衡服务器可能会将请求分发到集群任何一台服务器上,所以保证每次请求能够获得正确的session比单机时复杂。 集群环境下,session管理的主要几种手段 1.session复制 session复制是早期的企业级的使用比较多的一种服务器集群session管理机制。应用服务器开启web容器的s 阅读全文
posted @ 2016-06-10 16:53 maxomnis 阅读(463) 评论(0) 推荐(0) 编辑
摘要: Accept-Ranges:bytes Age:67 表示该资源在代理服务器(比如CDN, varinsh,squid等http加速器)从生成的时候到当前发送请求的时间之差,相当于表示其在代理服务上存在了多久 Cache-Control:max-age=3600 服务器上设置的缓存的时间,比如Nginx中设置的 expires 1h;一个小时候之... 阅读全文
posted @ 2016-06-08 11:58 maxomnis 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 安装pcrevarnish 依赖pcre进行url正则匹配。 cd pcre-8.12./configure --prefix=/usr/local/make&&make install 编译解压缩varnish源码包 wget http://repo.varnish-cache.org/sourc 阅读全文
posted @ 2016-06-03 16:38 maxomnis 阅读(183) 评论(0) 推荐(0) 编辑
摘要: www.maxomnis.com的index.php文件内容 <?phpsession_start();setcookie("user", "alex proter", time()+3600,'/home','maxomnis.com');setcookie("age", "1000000000" 阅读全文
posted @ 2016-06-01 11:38 maxomnis 阅读(3369) 评论(0) 推荐(0) 编辑
摘要: Linux Virtual Server项目的目标 :使用集群技术和Linux操作系统实现一个高性能、高可用的服务器,它具有很好的可伸缩性(Scalability)、可靠性(Reliability)和可管理性(Manageability)。 目前,LVS项目已提供了一个实现可伸缩网络服务的Linux 阅读全文
posted @ 2016-06-01 10:15 maxomnis 阅读(411) 评论(0) 推荐(0) 编辑
摘要: Examples: Multi-Query In this example we know that we need to fetch several result sets from a database. Traditionally you would make the requests one 阅读全文
posted @ 2016-05-31 15:31 maxomnis 阅读(423) 评论(0) 推荐(0) 编辑
摘要: doNormal方法是阻塞的,需要等到worker处理完之后才返回,否则一直阻塞住; doBackground 方法是非阻塞的,只要将数据发送到gearmand之后,就立马返回,不等待worker的处理,可以先启动client,不启动worker,分别使用doNormal,doBackground看 阅读全文
posted @ 2016-05-31 14:38 maxomnis 阅读(483) 评论(0) 推荐(0) 编辑
摘要: What is Gearman? Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the wor 阅读全文
posted @ 2016-05-31 11:53 maxomnis 阅读(364) 评论(0) 推荐(0) 编辑