1.查找端口占用进程ID
netstat -ano|findstr "8080"
2.通过进程ID查找进程名
tasklist |findstr "15036"
3.杀死进程(指定进程ID或进程名)
taskkill /f /t /im 15036
netstat -ano|findstr "8080"
tasklist |findstr "15036"
taskkill /f /t /im 15036
转载于:https://www.cnblogs.com/bretgui/p/10727752.html