window 用 cmd 关掉指定端口

627 阅读1分钟
  • 查找 这个 端口 占用的 进程 的PID : netstat -aon|findstr "9001"
  • 根据PID号找到对应的程序名 : tasklist|findstr "PID"
  • 结束该进程 : taskkill /f /t /im 程序名