- 博客(9)
- 收藏
- 关注
转载 批量删除redis键
/usr/local/redis/bin/redis-cli -h 127.0.0.1 -p 6379 keys "test*" | xargs /usr/local/redis/bin/redis-cli -h 127.0.0.1 -p 6379 del ...
2016-06-14 16:08:00
101
转载 golang windows 交叉编译 Linux
下载golang windows绿色版; cd go/src; GOOS=linux GOARCH=amd64 ./make.bat; 等待编译完成即可; 使用 Liteide 工具的环境下拉框选择,cross-linux64, 然后 ...
2015-11-23 10:54:00
185
转载 centos 安装 gearmand-1.1.12
安装 gearmand 前先装一堆依赖,如下: (boost的版本需要大于 1.39) yum install boost-devel yum install mysql-devel yum install gperf yum install libevent yum insta...
2015-05-07 17:02:00
184
转载 golang并发例子
packagemainimport( "fmt" "math/rand" "time")funcmain(){ fmt.Println("start") chn:=make(chanint,5) rand.Seed(time.Now().UnixNano(...
2015-03-31 09:59:00
137
转载 centos安装mcrypt加密模块以供php调用
yuminstalllibmcryptyuminstalllibmcrypt-develyuminstallmcrypt./configure--with-php-config=/usr/local/php/bin/php-configmakemakeinstall...
2014-05-12 09:57:00
137
转载 nginx+php-fpm记录脚本错误log
主要修改两个地方. fpm.d/xxx.conf 中添加配置项 catch_workers_output=yesphp_flag[display_errors]=onphp_flag[display_startup_errors]=onphp_admin_va...
2014-04-17 15:01:00
111
转载 php5.3通过匿名函数实现单例模式
下面是一段测试代码 classcc{functionnormal($a){static$object;if(is_null($object)){echo'init';...
2014-04-17 11:49:00
108
转载 php的xss过滤函数
/** * XSS 清除处理 */function xssClean($data, $htmlentities = 0){ $htmlentities && $data = htmlentities($data, ENT_QUOTES, 'utf-8'); // F...
2013-03-20 16:53:00
137
转载 js 检测远端网站是否可以访问
function ifUp(url,onUp,onDown) { // make random string var RANDOM_DIGITS = 7; // this is sufficient. Don't do more than ~12. var pow = Math.po...
2013-03-12 18:09:00
430
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人