两种方式 ① 第一种 用netstat -ano | grep 端口 找出进程号
然后 kill -9 进程号 杀进程 ② 第二种
例:关闭占用80端口的进程
sudo fuser -k -n tcp 80