2步到位,简单

1.netstat -aon | findstr "80"     #80为占用的端口(图一)

2.taskkill /pid 11108 /F       #11108为占用的进程(图2)