查找某个端口被哪个程序占用并结束它

查找特定端口

netstat -ano | findstr "6379"

根据PID找到对应进程

tasklist | findstr "pid num"

结束进程

taskkill /f /t /im 进程名.exe