tcpdump查看Nginx长连接还是短连接
tcpdump用法
-i eth0 表示网卡 -A 表示转为ascii码 -n 表示不要转域名,用ip就好 host 后面加IP地址
查看nginx是长连接还是短连接:
[root@nginx01 ~]# tcpdump -i eth0 -A host 192.168.156.44 -n | grep HTTP tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes .oJ&...ePOST /v2/story/comic/xxx/top HTTP/1.1 ...}.oJ&HTTP/1.1 200 OK .oN.....POST /v1/story/xxx HTTP/1.1 .....oN.HTTP/1.1 200 OK .oN....:POST /v1/story/xxx HTTP/1.1 ...[.oN.HTTP/1.1 200 OK .oR....BPOST /v2/story/comic/xxx/top HTTP/1.1 .oS....MPOST /v1/story/xxx HTTP/1.1 ...`.oR.HTTP/1.1 200 OK
结果:
HTTP/1.1 实锤
相关推荐
sapliang 2020-04-14
84251449 2019-12-26
gaogaorimu 2019-12-06
dreamnow0 2019-08-03
周海汉的开发 2012-11-10
zry 2016-01-23
andyzhaojianhui 2011-03-05
nuligannima 2010-09-04
yuhuqiao 2010-08-17
ftafta 2010-08-17
Jungzhang 2010-03-03
libra0 2019-06-29
jingz 2019-06-28
阳光之吻 2019-06-27
lfjjia 2016-04-05
DBwater 2014-08-06
想 2014-07-02
如竹 2013-05-14
西狂杨过 2013-02-07