码迷,mamicode.com
首页 >  
搜索关键字:yesterday    ( 271个结果
用shell分析nginx日志百度网页蜘蛛列表页来访情况
#!/bin/bash #desc:thisscriptsforbaidunews-spider #date:2014.02.25 #testdinCentOS5.9x86_64 #savedin/usr/local/bin/baidu-web.sh #writtenbycoralzd@gmail.comwww.zjyxh.com dt=`date-d"yesterday"+%m%d` if[$1x!=x];then if[-e$1];then grep-i"Baiduspider/2.0"$1>bai..
分类:Web程序   时间:2014-12-17 13:01:18    阅读次数:185
日志分割方法
日志分割方法: 1.logrotate 2.mv? logfile.log??? $(date -d ‘yesterday‘ +‘%Y%m%d‘)_old.log /sbin/killall? -USR1?? nginx 或 $(cat? path/nginx.pid) /sbin/killall ? -HUP?? httpd 3. cp? logf...
分类:其他好文   时间:2014-12-16 17:19:14    阅读次数:152
ZOJ3662:Math Magic(完全背包)
Yesterday, my teacher taught us about math: +, -, *, /, GCD, LCM... As you know, LCM (Least common multiple) of two positive numbers can be solved easily because of a * b = GCD (a, b) * LCM (a, b). ...
分类:其他好文   时间:2014-12-15 23:38:50    阅读次数:287
我的技术十年
I don't wanna regret when I'm 30.I just turned 21 years old yesterday,and there isn't really sufficiently ten years,which makes me should do it even h...
分类:其他好文   时间:2014-12-01 23:59:25    阅读次数:378
nginx菜鸟教程五
nginx定时任务完成日志切割 date -d yesterday date -s ‘2014-11-27 08:55:00‘ clock -w date -d yesterday +%Y%m%d --日志脚本 #!/bin/bash base_path=‘/usr/local/nginx/logs‘ log_path=$(date -d yesterday +...
分类:其他好文   时间:2014-11-27 22:13:41    阅读次数:705
快速的mysql导入导出数据(load data和outfile)
1.load data:***实际应用:把日志生成的xls文件load到MySQL中:mysql_cmd = "iconv -c -f utf-8 -t gbk ./data/al_ver_" + yesterday_time + ".xls -o ./data/GBK_al_ver_" + yes...
分类:数据库   时间:2014-11-24 17:08:15    阅读次数:296
前天,昨天和今天
var today=new Date();var yesterday=new Date(today.getTime()-1000*60*60*24); var thedaybeforeyesterday=new Date(today.getTime()-1000*60*60*24*2)...
分类:其他好文   时间:2014-11-23 20:14:54    阅读次数:165
HDU 3746 Cyclic Nacklace (KMP找循环节)
Problem Description CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan left. he is too distressed an...
分类:其他好文   时间:2014-11-09 16:42:48    阅读次数:131
mysql 数据备份脚本
架构:slave:#!/bin/bash # DATATIME=`date-d"yesterday"+%F` BACKTIME=`date+"%Y-%m-%d%H:%M:%S"` BACKUP_DIR=‘/data/dbback‘ MYSQL_USER=‘root‘ MYSQL_PASSWORD=‘123456‘ DBNAME=‘fa‘ FTP_HOST=‘192.168.0.20‘ FTP_USER=backer FTP_USERPASS=backer FTP_PORT=10011 [!-d$BAC..
分类:数据库   时间:2014-11-07 15:10:57    阅读次数:197
#yesterday
YesterdayYesterday, all my troubles seemed so far awayNow it looks as though they're here to stayOh, I believe in yesterday.Suddenly,I'm not half the ...
分类:其他好文   时间:2014-10-30 15:10:29    阅读次数:169
271条   上一页 1 ... 23 24 25 26 27 28 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!