windows 根据 端口号 找到进程ID PID

List process by port number

netstat -ano | findstr 8080

  

Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       29848
  • -a – Displays all connections and listening ports.
  • -o – Displays the owning process ID associated with each connection.
  • -n – Displays addresses and port numbers in numerical form.
taskkill /F /PID 29848

  

posted @ 2018-07-13 10:24  zhanghui_ming  阅读(134)  评论(0编辑  收藏  举报