1. Nginx的模块与工作原理 第三方模块:HTTP Upstream Request Hash模块、Notice模块和HTTP Access Key模块。 图1-1展示了Nginx模块常规的HTTP请求和响应的过程。Nginx 本身做的工作实际很少,当它接到一个HTTP请求时,...
分类:
其他好文 时间:
2015-08-20 20:37:17
阅读次数:
153
1、redis安装 a、rz redis.gz.tar b、tar解压 c、make编译 d、./redis-server & 服务端启动 e、redis-cli 客户端启动 1)notice:注意默认启动 redis-server redis.conf 会报错 , 原因参考redis有...
分类:
系统相关 时间:
2015-08-19 11:05:55
阅读次数:
172
在调试程序时,有可能会出现Undefined variable错误,一般情况下php是不需要定义变量的,但如果服务器什么都报错的,就会出现错误,我们经常接收表单POST过来的数据时报Undefined index中的错误如下:$act=$_POST['action'];或者总是提示Notice: U...
分类:
Web程序 时间:
2015-08-15 09:02:03
阅读次数:
184
Problem Description
Give a time.(hh:mm:ss),you should answer the angle between any two of the minute.hour.second hand
Notice that the answer must be not more 180 and not less than 0
Inpu...
分类:
其他好文 时间:
2015-08-13 23:46:29
阅读次数:
196
#user nobody;worker_processes 1; #error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info; #pid logs/ng...
分类:
移动开发 时间:
2015-08-12 22:58:31
阅读次数:
306
当把Redis作为windows服务来进行安装,文档中写的是--loglevel-verbos是错误的,应该是debug,notice或者warning之一; Redis有序排列首先是按照序号进行排序(zadd,zmemberrange);
分类:
其他好文 时间:
2015-08-11 00:08:26
阅读次数:
130
$des = './Application/Runtime/Logs/Api/api.log';
// $now = date('c');
$now = date('Y-m-d H:i:s');
$log = 'NOTICE';
$destination = 'DB连接失败';
error_log("[{$now}] ".$destination.' '.$_SERVER['REMOTE...
分类:
Web程序 时间:
2015-08-10 20:02:41
阅读次数:
168
在php编程过程中,大家一定会遇到或多或少的错误提醒,也正是这些错误提示,指引我们编写更加干净的代码,今天先写出我们主要列出的错误类型,先挖坑,写关于php错误与异常的相关知识,慢慢填坑。 Deprecated最低级别错误,程序继续执行 Notice 通知级别的错误 如直接使用未声明变量,程序继.....
分类:
Web程序 时间:
2015-08-10 17:32:47
阅读次数:
117
原文出处本文章介绍在php中关闭notice错误的一些做法,但是不得不说的是在关掉错误提示时,那么程序代码中大量的notice级别错误是否会造成PHP性能下降PHP Notice: Undefined variablePHP Notice: Undefined index看看吧,你有没定义的变量直接...
分类:
Web程序 时间:
2015-08-10 08:10:27
阅读次数:
246
nginx.conf#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid ...
分类:
移动开发 时间:
2015-08-06 12:42:14
阅读次数:
205