摘要:
nohup php /root/worker.php > /root/test.loh 2>&1 & 阅读全文
阅读排行榜
JS显示上一周
2016-05-04 00:50 by 游乐场123, 244 阅读, 收藏,
摘要:
Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, //month "d+": this.getDate(), //day "h+": this.getHours(), //hour "m+ 阅读全文
Installing PHP5.4 on Centos 5.8
2012-11-26 05:23 by 游乐场123, 242 阅读, 收藏,
摘要:
yum install yum-prioritiesrpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpmrpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpmyum install php54 php54-common php54-devel 阅读全文
Cakephp中如何实现i18n?
2011-11-05 03:20 by 游乐场123, 242 阅读, 收藏,
摘要:
好像网上一直没有比较详细的中文资料来讲述如何使用cakephp来实现i18n。正好昨天被逼无奈的将代码中的提示中文化了一把,略有心得,简而志之。中文化cakephp有如下几步:1,在代码中使用__()函数。在需要进行中文化的地方使用__()函数,如下所示:view sourceprint?1__('This is the string i need to translate', true);将第2个参数置为ture,这样如果有相对应的翻译词条的话那么翻译过的词条将输出,否则会输出未翻译的词条。2,执行i18n task如果你的代码中存在__()函数的话,你就可以执行i18n t 阅读全文
Linux系统Load average负载详细解释
2013-10-31 00:59 by 游乐场123, 241 阅读, 收藏,
摘要:
我们知道判断一个系统的负载可以使用top,uptime等命令去查看,它分别记录了一分钟、五分钟、以及十五分钟的系统平均负载例如我的某台服务器:$ uptime09:50:21 up 200 days, 15:07, 1 user, load average: 0.27, 0.33, 0.37大部分的人都认为这个数字越小越好,其实有很多关联的提示信息,今天看到这个好文,应该可以给大家说清楚很多问题,转一下:原文链接:http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages你可能对于 Linux 的负载均值(l 阅读全文
浙公网安备 33010602011771号