LANP+KEEPALIVED集群(二)#基于不同域名server{listen80;server_namenginx.postfix.local;charsetutf-8;access_loglogs/domain.logmain;location/{roothtml/domain;indexdomain.html;}error_page500502503504/50x.html;location=/50x.html{roothtml;}}#图示,访问nginx.postfi..
分类:
其他好文 时间:
2015-06-06 23:44:49
阅读次数:
179
PHP trigger_error 自定义错误级别抛出错误。//如果设置成notice或warning则程序继续向下执行,如果是致命级别的错误则终止执行$num1 = 1;if (is_numberic($num1)) { trigger_error('这不是一个合法的数字', E_USER_NO....
分类:
其他好文 时间:
2015-06-06 23:23:22
阅读次数:
87
MySql创建用户(包括密码)时,会提示ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number; 问题原因:你输入的密码是明文。不允许这么输入。 解决办法:用select password(‘你想输入的...
分类:
其他好文 时间:
2015-06-06 22:14:02
阅读次数:
177
本文介绍的是 Qt 元类型(MetaType)注册,请先来看内容。QObject::connect:Cannotqueueargumentsoftype'ERROR_LEVEL' (Makesure'ERROR_LEVEL'isregisteredusingqRegisterMetaType().)...
分类:
Web程序 时间:
2015-06-06 22:06:40
阅读次数:
173
1. 创建自己的404.html页面 2.更改nginx.conf在http定义区域加入: fastcgi_intercept_errors on; 3.更改nginx.conf(或单独网站配置文件,例如在nginx -> sites-enabled下的站点配置文件 ) 中在server 区域加入:...
分类:
其他好文 时间:
2015-06-06 22:03:07
阅读次数:
202
#!/usr/bin/python
import re
def pre_process_msg ( msgIn ):
if msgIn=="":
return "msgIn_Input_Error,should'nt Null, it is Strings"
else:
#1 trim
msg = msgIn
...
分类:
编程语言 时间:
2015-06-06 20:49:17
阅读次数:
367
0) { echo "Return Code: " . $_FILES["file"]["error"] . ""; } else { echo "Upload: " . $_FILES["file"]["name"] . ""; echo "Type: " ...
分类:
Web程序 时间:
2015-06-06 20:43:37
阅读次数:
188
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALS...
分类:
其他好文 时间:
2015-06-06 18:04:13
阅读次数:
88
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALS...
分类:
其他好文 时间:
2015-06-06 17:53:28
阅读次数:
115
#include "stdio.h" #include "stdlib.h" #include "io.h" #include "math.h" #include "time.h"#define OK 1#define ERROR 0#define TRUE 1#define FALS...
分类:
其他好文 时间:
2015-06-06 17:52:39
阅读次数:
131