Linux常用命令

1.查看端口的占用情况:lsof -i

2.查看某一端口的占用情况: lsof -i:端口号

3.结束占用端口的进程:killall 进程名

原文地址:https://www.cnblogs.com/DianaChen/p/10473069.html