查看5001段口被占用进程lsof -i:5001
:
localhost:My$ lsof -i:5001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
[Python](http://lib.csdn.net/base/python "Python知识库") 6320 zhaozeguang 3u IPv4 0x82d867c5ec4904d9 0t0 TCP localhost:51816->localhost:commplex-link (CLOSED)
[python](http://lib.csdn.net/base/python "Python知识库") 6323 zhaozeguang 3u IPv4 0x82d867c5ec4916e9 0t0 TCP localhost:51820->localhost:commplex-link (CLOSED)
Python 6327 zhaozeguang 3u IPv4 0x82d867c5ed8b52c9 0t0 TCP localhost:51828->localhost:commplex-link (CLOSED)
Python 6328 zhaozeguang 3u IPv4 0x82d867c5edcf04d9 0t0 TCP localhost:51835->localhost:commplex-link (CLOSED)
Python 6330 zhaozeguang 3u IPv4 0x82d867c5e27d06e9 0t0 TCP localhost:51836->localhost:commplex-link (CLOSED)
kill掉无用进程 kill PID
localhost:My$ kill 6327 6328 6330