zlingh

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页

2015年9月16日

摘要: 对于一个server,我们一般考虑他所能支撑的qps,但有那么一种应用, 我们需要关注的是它能支撑的连接数个数,而并非qps,当然qps也是我们需要考虑的性能点之一。这种应用常见于消息推送系统,也称为comet应用,比 如聊天室或即时消息推送系统等。comet应用具体可见我之前的介绍,在此不多讲。对... 阅读全文
posted @ 2015-09-16 22:43 zlingh 阅读(1028) 评论(0) 推荐(0) 编辑

2015年9月4日

摘要: 1、A ssh登入B时,出现"Are you sure you want to continue connecting (yes/no)?解决方法-bash-3.00$ cat /home/map/.ssh/config StrictHostKeyChecking no 阅读全文
posted @ 2015-09-04 15:49 zlingh 阅读(187) 评论(0) 推荐(0) 编辑

2015年8月20日

摘要: taskset -c 9,10 bash domain_analysis.sh && /home/work/odp/php/bin/php hourly_localdns_hijack.phpnice -n 19bash domain_analysis.sh && /home/work/odp/ph... 阅读全文
posted @ 2015-08-20 19:31 zlingh 阅读(500) 评论(0) 推荐(0) 编辑

2015年8月14日

摘要: 小文件过多时删文件方法1.ll | headfind . -mtime +20 | xargs -i -n 1 rm {}rsync方式mkdir kongrsync --delete -a kong/ roadnet/ 阅读全文
posted @ 2015-08-14 13:47 zlingh 阅读(121) 评论(0) 推荐(0) 编辑

2015年7月27日

摘要: 名称(NAME)tcpdump-转储网络上的数据流总览(SYNOPSIS)tcpdump[-adeflnNOpqStvx][-ccount][-Ffile][-iinterface][-rfile][-ssnaplen][-Ttype][-wfile][expression]描述(DESCRIPTI... 阅读全文
posted @ 2015-07-27 20:20 zlingh 阅读(1188) 评论(0) 推荐(0) 编辑

2015年7月25日

摘要: tr,awk,sed 一:tr 1.大小写转换 cat file | tr [a-z] [A-Z] > new_file(大写 --> 小写) cat file | tr [A-Z] [a-z] > new_file 2.删除空行 cat file | tr -s "\n" > new_file 二 阅读全文
posted @ 2015-07-25 22:45 zlingh 阅读(300) 评论(0) 推荐(0) 编辑

2015年7月19日

摘要: 一:设置keepalive_timeout 0;发curl:[xxx ~]$ curl -H "Keep-Alive: 60" -H "Connection: keep-alive" '10.195.100.22:015/a.php'tcpdump:[xxx~]# tcpdump -i eth1 -... 阅读全文
posted @ 2015-07-19 20:16 zlingh 阅读(1458) 评论(0) 推荐(0) 编辑

摘要: 通信双方建立TCP连接后,主动关闭连接的一方就会进入TIME_WAIT状态TIME_WAIT状态的时间是2倍的MSL(最大生存时间),在TIME_WAIT状态TCP连接实际上已经断掉,但是该插口又不能被新的连接实例使用。这种情况一般都是程序中建立了大量的短连接。那么http 服务是谁主动关闭连接呢?... 阅读全文
posted @ 2015-07-19 16:36 zlingh 阅读(681) 评论(0) 推荐(0) 编辑

摘要: 参考:http://huoding.com/2013/12/31/316http://www.cnblogs.com/sunxucool/p/3449068.htmlhttp://maoyidao.iteye.com/blog/1744277 阅读全文
posted @ 2015-07-19 15:07 zlingh 阅读(164) 评论(0) 推荐(0) 编辑

摘要: 监测端口是否存在nc -z 127.0.0.1 9100扫描端口nc -z -v 127.0.0.1 8000 9999发送httpnc www.baidu.com 80GET / HTTP/1.1Host:www.baidu.com 阅读全文
posted @ 2015-07-19 14:47 zlingh 阅读(416) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页