来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
请求顺序: 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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28