在 Linux 中监控端口

Ale*_*lex 0 ubuntu port process

如何找出哪些进程正在监听 Ubuntu 中的特定端口?

Dan*_*ley 7

假设你是root。

netstat -lnp
Run Code Online (Sandbox Code Playgroud)

第 4 和第 7 个字段是您想要的。

或者,您可以使用lsof(1)获得更详细的信息。