windows查看端口占用程序并终止

windows查看端口占用程序并终止:

cmd

netstat -ano|findstr “8080”

tasklist|findstr “pid”

taskkill /f /t /im pid对应的程序名.exe

netstat -ano | findstr 80 //列出进程极其占用的端口,且包含 80tasklist | findstr 9268taskkill -PID <进程号> -F //强制关闭某个进程