sudo kill -9 $(lsof -i:端口号 -t)
1.查看端口号是否被占用 netstat -lnp|grep 端口 或 lsof -i :端口
2查看进程对应的端口号 netstat -nap | grep 进程号