netstat -apn
其中最后一列是PID,能够经过kill Pid进行结束进程。linux
更精确的查找:spa
netstat -apn | grep 8080
查询8080端口的进程code
若是要查询这个进程的详情:blog
ps -aux | grep xxx ps -aux | grep pid
参考:进程
http://droidyue.com/blog/2013/09/25/list-ports-on-linux/get