查看所有tcp进程 监听的端口 lsof -iTCP -sTCP:LISTEN 查看指定端口信息 lsof -i:12345 关闭指定进程 kill -9 52356 转载于:https://www.cnblogs.com/pengyingh/p/9489034.html