1. $ netstat -Aan |grep 8080
f1000e0002321bb8 tcp 0 0 *.8080 *.* LISTEN
2. $ rmsock f1000e0002321bb8 tcpcb
The socket 0xf1000e0002321808 is being held by proccess 5767286 (java)
ps: 5767286即是进程号
3. $ ps -ef |grep 5767286
当然,如何是要杀进程的话,可以直接kill -9 5767286