比如127.0.0.1:8087,如何查看哪个进程占用了8087
|
yanggOct 22, 2012
1
lsof -i :80
|
|
2
sudo lsof -n -P| grep :8087
|
|
3
nc -v -w 2 127.0.0.1 8087
|
|
leecadeOct 23, 2012
4
lsof -i tcp:8087
|
|
5
better 在 bash 自定义下
# belongs to port # usage: "port 8000" function port() { lsof -i tcp:$1 } # all open ports # usage: "ports" function ports() { lsof -Pni4 | grep LISTEN } |
|
xiaketOct 23, 2012
6
[xiaket@rondo:~]alias nettop
alias nettop='nettop -nm tcp' |