COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Python 604 lxx 4u IPv4 0x877166c1efa42159 0t0 TCP localhost:irdmi (LISTEN)
netstat命令 netstat -an | grep 3306 3306替换成需要grep的端口号
原文:http://www.cnblogs.com/win-lin08/p/7747582.html