zlingh

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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) 编辑