一条命令 杀死某个端口 所有程序

sudo kill -9 $(lsof -i:端口号 -t)

原文地址:https://www.cnblogs.com/mafeng/p/11797014.html