4
我(或者netstat -p或ss -p)如何从/ proc/net/tcp输出中找到拥有的PID?如何找到只有/ proc的插槽的拥有PID
下面给出的输出:
sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode
3: 00000000:07D1 00000000:0000 0A 00000000:00000000 00:00000000 00000000 500 0 29345 1 ffff8800210ce740 299 0 0 2 -1
,我需要通过递归的/ proc/$ PID搜索索引节点?
我试着在/ proc /上找到与上面的inode相匹配的运行find,没有任何运气。
有人可以解释inode的字段是什么意思?
谢谢!
的可能重复[我怎样才能每次的/ proc /净/ TCP进入每个打开的插座匹配吗?(http://stackoverflow.com/questions/3319521/how-can-i-match -each-proc-net-tcp-entry-to-each-open-socket) – caf 2011-05-06 02:05:05
请注意,不一定有一个拥有PID - 套接字可以在多个进程中打开。 – caf 2011-05-06 02:06:10
[我怎样才能将每个/ proc/net/tcp条目匹配到每个打开的套接字?](https://stackoverflow.com/questions/3319521/how-can-i-match-each-proc-net- tcp-entry-to-each-open-socket) – user7610 2018-02-15 19:33:11