windows端口占用关闭指定端口

渝思 / 2023-08-10 / 原文

查看windows端口进程pid,在cmd中执行命令

netstat -aon|findstr 80

最后一列的数据即是pid。

关闭指定pid进程

taskkill /f /pid 80