二、配置haproxy实现网站的负载均衡:1、node1和node2都安装httpd,php,php-mysql:[root@node1~]#yum-yinstallhttpdphpphp-mysql[root@node2~]#yum-yinstallhttpdphpphp-mysql2、为node1和node2提供静态和动态网页:[root@node1~]#ls/var/www/html/
index.htmlindex.php
[roo..
分类:
其他好文 时间:
2014-05-05 12:30:42
阅读次数:
614
nginx根据cookie分流众所周知,nginx可以根据url
path进行分流,殊不知对于cookie分流也很强大,同时这也是我上篇提到的小流量实验的基础。二话不说,先看需求,两台服务器分别定义为apache001:192.168.1.1:8080apache002:192.168.1.2:80...
分类:
其他好文 时间:
2014-05-05 12:05:36
阅读次数:
350
nginx+apache+php+mysql服务器集群搭建由于需要搭建了一个基本的服务器集群。具体的配置方案先不说了,到有时间的时候再介绍。下面介绍下整个方案的优点。我总共准备了四台阿里云的主机,架设分别是A,B1,B2,C,A在集群的最前面,B1和B2在A的后面,C在最后面。A主要用的nginx,...
分类:
数据库 时间:
2014-05-05 12:01:43
阅读次数:
407
ashx里使用session添加命名空间using
System.Web.SessionState;实现一个接口 IRequiresSessionState
分类:
其他好文 时间:
2014-05-05 11:20:51
阅读次数:
278
思路:用setAttribute()放 ,然后直接输出 Integer
str=(Integer)session.getAttribute("count"); int num3= Integer.valueOf(str);
session.setAttribute("count",num...
分类:
编程语言 时间:
2014-05-04 19:59:51
阅读次数:
430
MyOpenSUSE:/home/jin/workspace # tail -f
.metadata/.log !SESSION 2014-05-04 11:35:58.869
-----------------------------------------------eclipse.buildI...
分类:
系统相关 时间:
2014-05-04 19:34:07
阅读次数:
984
1,把YII框架里面的framework复制粘贴到nginx目录下2,创建一个商城系统:
1)修改环境变量 制定php.exe的目录
2)C:\Users\Administrator>cdC:\Users\AdministratorC:\Users\Administrator>d:D:\...
分类:
其他好文 时间:
2014-05-04 10:28:33
阅读次数:
256
sessionScope整体的意思是获得存放在session.setAttrbute(key,value)的值本文转载自熊佳佳《sessionScope整体的意思是获得存放在session.setAttrbute(key,value)的值》package
com.demo.struts2;impor...
分类:
其他好文 时间:
2014-05-04 10:21:41
阅读次数:
313
HttpClient 与 HttpUrlConnection 是Android 中HTTP操作最常见的访问方式。在一个应用程序中有时候会用到这两种方式,如何能让他们共用Cookie,让客户端访问服务器保持Session进行通信。 针对httpClient 和HttpUrlConnection 获取和发送Cookie,主要是sessionID的共享。 httpClient获取及发送S...
分类:
移动开发 时间:
2014-05-04 09:51:39
阅读次数:
451