Sep
26
2007
0

Linux 上查看佔用指定端口的進程

在 Linux 上,如果想找出佔用某個 port 的進程,可使用 fuser 指令。

找出佔用 TCP port 8080 的進程:

  1. # fuser -v 8080/tcp

砍掉佔用 TCP port 8080 的進程:

  1. # fuser -k 8080/tcp
Written by Chris Lam in: Linux / Unix |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes