二、配置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
Given an array of non-negative integers, you
are initially positioned at the first index of the array.Each element in the
array represents your maximu...
分类:
其他好文 时间:
2014-05-05 10:05:58
阅读次数:
300
后台创建站点后后,域名已解析,但无法打开默认页面,创建网站后会有一个默认的index.html
存在于public_html下面的,我用FTP 查看是有的,但用域名却无法访问,总是显示403界面经查看,发现端口管理下面的
80端口显示的是nginx.conf ,然后我将系统设置里面的web引擎修改为...
分类:
Web程序 时间:
2014-05-05 09:53:22
阅读次数:
409
CSS清浮动:==>抄自梦想天空:http://www.cnblogs.com/lhb25/p/3674353.html上代码:所有代码访问:http://www.iyunlu.com/demo/enclosing-float-and-clearing-float/index.html
那些年我们....
分类:
Web程序 时间:
2014-05-04 20:50:29
阅读次数:
332
深刻理解Linux进程间通信(IPC) 郑彦兴
原文地址:http://www.ibm.com/developerworks/cn/linux/l-ipc/index.html
一个大型的应用系统,往往需要众多进程协作,进程(Linux进程概念见附1)间通信的重要性显而易见。本系列文章阐述了Linu...
分类:
系统相关 时间:
2014-05-04 20:27:18
阅读次数:
485
apeach 配置; ServerAdmin webrx@126.com DocumentRoot
"E:\wamp\www\yii_1113\fkgm" ServerName www.cup.com DirectoryIndex index.html
index.php ...
分类:
Web程序 时间:
2014-05-04 20:13:47
阅读次数:
331
http://www.proxmark.org/forum/index.phpRFID破解神器官方论坛http://rfidiot.org/集成RFID
ID识别/暴力破解/读写卡一身的Py包,通读官方网站所有信息会对RFID破解步骤有一个基本了解。http://www.rfdump.org/(被墙...
分类:
其他好文 时间:
2014-05-04 20:08:02
阅读次数:
384
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3143
把矩阵变成一行,然后计算位置,lrj给了线段树数组做法 但是我做的线段树空间过大,直接爆掉,所以换方法了
主要还是测试自己的线段树区间更新的模板
各种RE+WA之后AC,,,,,
...
分类:
其他好文 时间:
2014-05-04 18:06:36
阅读次数:
412
Logstash是一个完全开源的工具,他可以对你的日志进行收集、分析,并将其存储供以后使用(如,搜索),您可以使用它。说到搜索,logstash带有一个web界面,搜索和展示所有日志。kibana也是一个开源和免费的工具,他可以帮助您汇总、分析和搜索重要数据日志并提供友好的web界面..
分类:
其他好文 时间:
2014-05-04 17:21:14
阅读次数:
416
描述:使用Hibernate登陆验证时故意输入没有的用户名,所产生的错误。错误代码:/* *
根据客户的用户名查找客户信息 */ @Override public User getUserByUserName(String userName) {
String hql="from User ...
分类:
编程语言 时间:
2014-05-04 10:57:50
阅读次数:
372