脚本

lsof -i:8080 | awk 'NR>1{print $2}' | xargs kill

原文地址:https://www.cnblogs.com/anjunact/p/6697533.html