1.首先使用 netstat -ano查看占用端口的进程号
2.然后使用 taskkill /PID (进程号)杀死进程
windows查看和杀死占用端口的进程
原文:https://www.cnblogs.com/zhuzhaoli/p/10185090.html