📌  相关文章
📜  powershell 查看正在使用的端口 - TypeScript 代码示例

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

代码示例1
See Ports in Use: 
Get-NetTCPConnection | where Localport -eq PORT_NUMBER | select Localport,OwningProcess

Kill Port In Use

*Set this command*
netstat -ano | findstr :PORT_NUMBER
*To find a ID Process look a exemple below*
TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       THIS IS ID PROCESS --->[12948]

*Kill IDProcess*
taskkill /PID IDPROCESS /F