waiting.cc
域名年龄: 15年5个月7天HTTP/1.1 301 永久重定向 访问时间:2014年04月07日 05:43:05 服务器:Apache/2 语言环境:PHP/5.3.28 过期时间:1981年11月19日 16:52:00 缓存控制:no-store, 不缓存,必须更新, post-check=0, pre-check=0 其他指令:不缓存 X-Pingback: http://www.waiting.cc/xmlrpc.php 设置Cookie:PHPSESSID=d0bd2641f7599ba932f8dcb950630164; path=/ 目标网址:http://www.waiting.cc/ 动作:User-Agent 文件大小:0 Keep-Alive: timeout=1, max=100 连接:Keep-Alive 类型:text/html; charset=UTF-8 HTTP/1.1 200 OK 访问时间:2014年04月07日 05:43:05 服务器:Apache/2 语言环境:PHP/5.3.28 过期时间:1981年11月19日 16:52:00 缓存控制:no-store, 不缓存,必须更新, post-check=0, pre-check=0 其他指令:不缓存 X-Pingback: http://www.waiting.cc/xmlrpc.php 设置Cookie:PHPSESSID=9aba10d1bb22308bb40201db7e1e0871; path=/ 动作:Accept-Encoding,User-Agent Content-Encoding: gzip 文件大小:5565 Keep-Alive: timeout=1, max=100 连接:Keep-Alive 类型:text/html; charset=UTF-8 网站编码:UTF-8
Waiting~G一起走过的日子客户端配置DNS不生效,如何解决without comments有时候一台DNS服务器配置好;其他的客户端都能正常使用;唯独只有你这一台按照相同配置后,也不生效;如何解决呢?1、修改/etc/nsswitch.conf文件hosts: files dns2、修改/etc/nscd.conf文件enable-cache hosts yespositive-time-to-live hosts 600negative-time-to-live hosts 0suggested-size hosts 211check-files hosts yespersistent hosts noshared hosts yesmax-db-size hosts 33554432与paranoia yesrestart-interval 10enable-cache passwd yespositive-time-to-live passwd 600negative-time-to-live passwd 20suggested-size passwd 211check-files passwd yesDNS缓存客户端重启,读取新的配置/usr/sbin/nscd -K/usr/sbin/nscd &/usr/sbin/nscd -i hostsWritten by Skyma 三月 25th, 2014 at 3:13 上午Posted in 学.Linuxpython 获取关键位置without commentspyton提供了对字符串的一些操作,但是对一些复杂的语句来说;不是那么见效;使用两个函数对语句进行处理;可以获取你想要关键字的开始位置与结束位置;从而获得你想要的substring举例说明:import reimport osimport subprocessimport timeimport signalimport tracebackimport datetime from multiprocessing import Process, Queue, active_children from subprocessimport Popen,PIPE,STDOUTimport MySQLdbimport psycopg2import sys#获取开始位置def getStartPos(line_str, key_word): pos=line_str.lower().find(key_word)if (pos==-1): return -1 else: i = pos+len(key_word) while (line_str[i]==” ” or line_str[i]==”\t” or line_str[i]==”\n”): i=i+1 return i#获取结束位置def getEndTbPos(line_str, start_from_pos): ch=[' ', '(', '"', ';', '\n','\t','\r'] pos=5000 if line_str.lower().find(“:: “) or line_str.lower().find(” :: “) or line_str.lower().find(“::”) or line_str.lower().find(” ::”): line_str,number=re.subn(” ::”,”::”,line_str) line_str,number=re.subn(” :: “,”::”,line_str) line_str,number=re.subn(” :: “,”::”,line_str) line_str,number=re.subn(“\s*::”,”::”,line_str) line_str,number=re.subn(“\s*::\s*”,”::”,line_str) line_str,number=re.subn(“::\s*”,”::”,line_str) line_str,number=re.subn(“:\s:”,”::”,line_str) line_str,number=re.subn(“:\s*:”,”::”,line_str)else: line_str=line_strfor c in ch: pos_tmp =line_str[start_from_pos:].find(c) if (pos_tmp!=-1 and pos_tmp < pos): pos = pos_tmp if pos==5000: return -1 else: return pos+start_from_pos#语句testA=’SELECT user_uin,sum_deal_total_amount_309163,ftime FROM t_task_aggr_115800′pos_start=getStartPos(testA, ‘from’)pos_end=getEndTbPos(testA, pos_start)print “==============”,testA[pos_start:pos_end].strip(),len(testA[pos_start:pos_end].strip())Written by Skyma 三月 20th, 2014 at 8:52 上午Posted in 学.LinuxHBase基本操作without commentsHbase操作常见命令1.查询服务器状态:status2.查询hive版本:version3.创建一个表:create ‘member’,'member
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-11-29 06:57, Process in 0.0049 second.