查询端口进程并结束进程

青云码上 / 2023-07-19 / 原文

查询占用某个端口的 PID

netstat -ano|findstr "端口号"

根据 PID 查找进程

tasklist|findstr "32080"

根据 PID 结束进程

taskkill -PID 32080 -F