比如127.0.0.1:8087,如何查看哪个进程占用了8087
1
yangg Oct 22, 2012
lsof -i :80
|
2
bearice Oct 22, 2012 sudo lsof -n -P| grep :8087
|
3
gavingeng Oct 23, 2012 nc -v -w 2 127.0.0.1 8087
|
4
leecade Oct 23, 2012
lsof -i tcp:8087
|
5
leecade Oct 23, 2012 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 } |
6
xiaket Oct 23, 2012
[xiaket@rondo:~]alias nettop
alias nettop='nettop -nm tcp' |