简体   繁体   English

在linux上找到一个进程向特定端口发送请求

[英]Find a process on linux sending a request to a specific port

We have a process running on a box listening to specific port 9001. We are trying to identify another process running on the same box which might be sending request to this process on the given port.我们有一个进程在侦听特定端口 9001 的机器上运行。我们正在尝试识别在同一机器上运行的另一个进程,该进程可能正在给定端口上向该进程发送请求。

We do have a TCP dump for the given port (9001), but it shows ports which are sending request to this port(9001) but are short lived before we can catch it.对于给定端口(9001),我们确实有一个 TCP 转储,但它显示了正在向该端口(9001)发送请求但在我们捕捉到它之前是短暂的。

Is there any other way available to catch this process?有没有其他方法可以捕捉这个过程?

You can use netstat -anp in Linux on port 9001 to see which process send a sync request to this port.您可以在端口 9001 上使用 Linux 中的 netstat -anp 来查看哪个进程向该端口发送同步请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM