DR类型中,Director和RealServer的配置脚本示例:Director脚本:#!/bin/bash
#
#LVSscriptforVS/DR
#chkconfig:-9010
#
./etc/rc.d/init.d/functions
#
VIP=192.168.11.100
DIP=192.168.11.11
RIP1=192.168.11.12
RIP2=192.168.11.13
PORT=80
RSWEIGHT1=2
RSWEIGHT2=4
#
case"$1..
分类:
其他好文 时间:
2015-05-04 10:19:49
阅读次数:
176
之前有在代码全部正确的情况下,遇到过下面的编译错误:fatal error: file '.....h' has been modified since the precompiled header '.....' was built.note: please rebuld precompiled ...
分类:
系统相关 时间:
2015-05-02 18:02:27
阅读次数:
162
GCJ1C09C - Bribe the PrisonersProblemIn a kingdom there are prison cells (numbered 1 to P) built to form a straight line segment. Cells number i and i...
分类:
其他好文 时间:
2015-05-01 23:48:21
阅读次数:
149
1、错误描述
WARN:2015-05-01 13:26:10[localhost-startStop-1] - HHH000402: Using Hibernate built-in connection pool (not for production use!)
WARN:2015-05-01 13:26:10[localhost-startStop-1] - Exception enco...
分类:
编程语言 时间:
2015-05-01 14:51:54
阅读次数:
558
1、错误描述
INFO:2015-05-01 13:06:07[localhost-startStop-1] - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
WARN:2015-05-01 13:06:07[localhost-startStop-1] - Excep...
分类:
其他好文 时间:
2015-05-01 13:26:43
阅读次数:
524
1、错误描述
INFO:2015-05-01 13:13:05[localhost-startStop-1] - Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
WARN:2015-05-01 13:13:05[localhost-startStop-1] - Excep...
分类:
Web程序 时间:
2015-05-01 13:24:10
阅读次数:
265
本文展示加法和乘法的两个例子,最后使用MapReduce的思想把两者统一成一个带Currying的表达形式。从high-order functions推演到Currying原始方法def sum(f: Int => Int, a: Int, b: Int): Int =
if (a > b) 0
else f(a) + sum(f, a + 1, b)表示从a到b,把每个int做一次f处理,...
分类:
其他好文 时间:
2015-05-01 00:42:36
阅读次数:
155
1Python支持运行时使用“lambda”建立匿名函数(anonymous functions that are not bound to a name)。python "lambda"和functional programming语言有区别,但是他非常强大经常拿来和诸如filter(),map(...
分类:
编程语言 时间:
2015-04-29 23:06:55
阅读次数:
184
启动Apache有两种方法1、打开网络共享打开”系统偏好设置”->”共享”,在”互联网共享”那一项前面打√。2、打开终端,输入sudo apachectl start这时需要输入密码,输入电脑密码即可,然后输入sudo apachectl -v可以查看到Apache的版本信息Server version: Apache/2.2.24 (Unix)
Server built: Jul 7 201...
分类:
数据库 时间:
2015-04-29 17:16:13
阅读次数:
216
phpcms v9 中 string2array()函数使用了eval函数,在多个地方可能造成代码执行漏洞/phpsso_server/phpcms/libs/functions/global.func.php/*** 将字符串转换为数组** @param string $data ...
分类:
Web程序 时间:
2015-04-29 16:39:16
阅读次数:
2195