+ -
当前位置:首页 → 问答吧 → 来shell版问下吧,怎样查找由lighttpd代理请求和应答的对应关系?

来shell版问下吧,怎样查找由lighttpd代理请求和应答的对应关系?

时间:2011-04-09

来源:互联网

如题:怎样查找由lighttpd代理请求和应答的请求?

请求顺序: 80.5-->10.199.75.141(安装lighttpd,代理)-->10.199.75.150

命令:lsof -n -p 11612
部分结果,下面是代表两条连接吗?若不是,怎样看呢?

lighttpd 11612 root   76u  IPv4 268490355                TCP 10.199.75.141:50932->10.199.75.150:webcache (ESTABLISHED)  
lighttpd 11612 root   77u  IPv4 268491454                TCP 10.199.75.141:http->10.199.80.5:39715 (ESTABLISHED)

lighttpd 11612 root   78u  IPv4 268491457                TCP 10.199.75.141:51066->10.199.75.150:webcache (ESTABLISHED)
lighttpd 11612 root   79u  IPv4 268493216                TCP 10.199.75.141:http->10.199.80.5:48128 (ESTABLISHED)


[root@BW-UGC-WPPS02 bwugclog]# uname -r
2.6.18-128.el5PAE


[root@BW-UGC-WPPS02 bwugclog]# ps -ef | grep light
root     11610     1  0  2010 ?        00:00:00 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf
root     11612 11610  0  2010 ?        00:01:11 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf
root     11613 11610  0  2010 ?        00:05:17 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf
root     11614 11610  0  2010 ?        00:02:28 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf
root     11615 11610  0  2010 ?        00:02:30 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf
root     11616 11610  0  2010 ?        00:01:45 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf
root     11618 11610  0  2010 ?        00:01:18 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf
root     11619 11610  0  2010 ?        00:01:13 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf
root     11620 11610  0  2010 ?        00:01:20 /opt/lighttpd/sbin/lighttpd -f /opt/lighttpd/conf/lighttpd.conf

作者: ccjsj1   发布时间: 2011-04-09

顶下。。。

作者: ccjsj1   发布时间: 2011-04-11