会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
太尉的博客
Game changer
博客园
首页
新随笔
联系
订阅
管理
2014年8月29日
find命令总结
摘要: find ./ -name "*gz" -mtime +5 -exec rm -fr "{}" \;find $DEST -type f -name "$TargetFilePattern" -mtime +$FileAge -exec rm {} \;注意:-name 后面参数要用双引号或单引号。...
阅读全文
posted @ 2014-08-29 15:06 haishi633
阅读(97)
评论(0)
推荐(0)
2014年8月24日
yii model中自定义一个validate rule
摘要: public function rules() { return array( array('bc_number,call_ring_timeout,circle_times', 'required'), array('bc_numbe...
阅读全文
posted @ 2014-08-24 21:42 haishi633
阅读(239)
评论(0)
推荐(0)
2014年8月14日
如何查看和kill僵尸进程
摘要: top命令top命令执行后,我们可以看到屏幕顶部有显示zombie的个数。top - 07:04:19 up 838 days, 12:37, 1 user, load average: 0.05, 0.08, 0.15Tasks: 130 total, 1 running, 129 sleep...
阅读全文
posted @ 2014-08-14 15:18 haishi633
阅读(517)
评论(0)
推荐(0)
2014年8月12日
MySQL ibdata1和mysql-bin过大的问题
摘要: Ibdata1过大原因:ibdata1是存储格式,在INNODB类型数据状态下,ibdata1用来存储文件的数据和索引,而库名的文件夹里的那些表文件只是结构而已。InnoDB 默认会将所有的数据库InnoDB引擎的表数据存储在一个共享空间中:ibdata1,这样就感觉不爽,增删数据库的时候,ibda...
阅读全文
posted @ 2014-08-12 16:33 haishi633
阅读(300)
评论(0)
推荐(0)
SIPp笔记
摘要: Conditional Branchingnext场景文件中必需定义 ,send, receive, pause等动作执行完成后将会跳转到next参数所指定的部分。testtest="m"表示场景文件中选定动作执行完成只有[$m]变量有值时才能跳转到next所指定的部分。chancechance的值...
阅读全文
posted @ 2014-08-12 10:41 haishi633
阅读(173)
评论(0)
推荐(0)
2014年8月11日
linux du命令: 显示文件、目录大小
摘要: $ du -sh #显示当前目录总大小,加-h提高信息的可读性1.5M .$ du --max-depth=1 -h #显示当前目录和第一层子目录的大小24K ./dir156K ./dir284K ./dir348K ./dir41.5M .
阅读全文
posted @ 2014-08-11 09:21 haishi633
阅读(181)
评论(0)
推荐(0)
find命令删除15内文件
摘要: find . -type f -name "tn-query*.csv" -mtime +15 -deletefind . -type f -mtime +15 -delete
阅读全文
posted @ 2014-08-11 09:13 haishi633
阅读(190)
评论(0)
推荐(0)
2014年7月30日
Jquery常用操作
摘要: 清空表格$("#tbl").find("tr:gt(0)").remove();
阅读全文
posted @ 2014-07-30 14:29 haishi633
阅读(72)
评论(0)
推荐(0)
2014年7月29日
php将array变成csv格式
摘要: 1 function array_to_csv_download($array, $filename = "export.csv", $delimiter=";") { 2 // open raw memory as file so no temp files needed, you mi...
阅读全文
posted @ 2014-07-29 15:31 haishi633
阅读(297)
评论(0)
推荐(0)
2014年7月25日
Yii dataprovider example
摘要: sdfsdf#CArrayDataProvider #http://www.yiiframework.com/doc/api/1.1/CArrayDataProvider/$rawData=Yii::app()->db->createCommand('SELECT * FROM tbl_user')...
阅读全文
posted @ 2014-07-25 08:27 haishi633
阅读(207)
评论(0)
推荐(0)
下一页
公告