ubuntu 关闭指定占用端口 sudo kill $(sudo lsof -t -i:8080) lsof详细命令请参考: https://www.cnblogs.com/sparkbj/p/7161669.html