如何获取控制关闭端口已经在使用

代码示例

5
0

端口已经在使用windows10

netstat -ano | findstr :3001
taskkill /PID <yourid> /F
1
0

取消ng服务器端口

Using your terminal, find the PID of port 4200
netstat -ano | findstr :4200

Kill task by the PID Number (Replace 15940)
taskkill /PID 15940 /F

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................