📜  windows kill port - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:17.755000             🧑  作者: Mango

代码示例6
netstat -ano | findstr "PORT_NUMBER"

taskkill /PID  /f 
//can be found on the last column next to LISTENING
____________________________________________________________________________
 TCP    0.0.0.0:3000           0.0.0.0:0              LISTENING       24660
____________________________________________________________________________

!!
taskkill /PID 24660 /f