10 2015 档案
摘要:sed -i "s/原字符/替换的字符/g" `grep 原字符 -rl /var/www/项目名`
阅读全文
摘要:function GrabImage(url,filename="") { if(url=="") return false; if(filename=="") { ext=strrchr(url,"."); if(ext!=".gif" && ext!=".jpg...
阅读全文
摘要:开始->运行->输入cmd输入 at 21:00 Shutdown -s 表示21点关机Shutdown.exe -s -t 3600 表示3600秒后关机如果想取消 输入 Shutdown -a
阅读全文
摘要:需求:一个php程序要跑一段时间,但是时间不确定。问题: 当该php程序运行超过一段时间被强制断开连接。PHP本身超时处理在 php.ini 中,有一个参数 max_execution_time 可以设置 PHP 脚本的最大执行时间,但是,在 php-cgi(php-fpm) 中,该参数不会起效。真...
阅读全文
摘要:date >> /home/backupluc/monitor/loadavg.txttop -b -n 1 | grep Cpu >> /home/backupluc/monitor/loadavg.txttop -b -n 1 | grep average >> /home/backuplu...
阅读全文