def set_redis_data(channel_id,channel) redis = Redis.new(:host => '10.xxx.xx.xx', :port => 6379) redis.del(channel_id) yesterday = ...
分类:
其他好文 时间:
2015-07-29 13:44:24
阅读次数:
120
sh -xv test.sh #加参数xv查看shell执行过程。Shell 调用系统时间变量 获取今天时期:`date +%Y%m%d` 或 `date +%F` 或date +%Y-%m-%d-%H:%M:%S 获取昨天时期:`date -d yesterday +%Y%m%d` 获取前天日期:...
分类:
系统相关 时间:
2015-07-27 18:41:53
阅读次数:
153
原文 Yesterday afternoon Frank Hawkins was telling me about this experiences as a young man. Before he retired, Frank was the head of a very large business company, but as a boy he used to work in ...
分类:
其他好文 时间:
2015-07-14 00:19:12
阅读次数:
215
原文 I had a letter from my sister yesterday. She lives in Nigeria. In her letter, she said that she would come to England next year. If he comes, she will get a surprise. We are now living in a be...
分类:
其他好文 时间:
2015-07-07 14:57:03
阅读次数:
131
Given aWeathertable, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates.+---------+--------...
分类:
其他好文 时间:
2015-07-04 18:22:08
阅读次数:
119
1、显示小数点后两位2、显示整数3、显示为货币格式4、时间格式化{$smarty.now|date_format}{$smarty.now|date_format:"%A, %B %e, %Y"}{$smarty.now|date_format:"%H:%M:%S"}{$yesterday|date...
分类:
其他好文 时间:
2015-07-03 15:35:15
阅读次数:
137
原文 I have just moved to a house in Bridge Street. Yesterday a beggar knocked at my door. He asked me for a meal and a glass of beer. In return for this, the beggar stood on his head and sang song...
分类:
其他好文 时间:
2015-06-28 20:18:54
阅读次数:
158
Given aWeathertable, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates.+---------+--------...
分类:
其他好文 时间:
2015-06-26 10:38:50
阅读次数:
116
I can Not use the chinese input method, so bad, but I have to memorize some stuff about using ubuntu, yesterday I found i can not login my ubuntu system, i donnot know why ,so search any Q/A in web...
分类:
系统相关 时间:
2015-06-25 12:36:03
阅读次数:
173
#!/bin/bashlogs_path="/opt/nginx/logs/"pid_path="/opt/nginx/logs/nginx.pid"mv${logs_path}access.log${logs_path}access_$(date-d"yesterday"+"%Y%m%d").logkill-USR1`cat${pid_path}`crontab-e0000***sh/opt/shell/cutnginx.sh该脚本不能执行可能原因:脚本没有X权限在非r..
分类:
系统相关 时间:
2015-06-11 23:11:37
阅读次数:
165