CMD关闭端口命令「建议收藏」

发布时间:2025-12-09 13:52:38 浏览次数:5

1.查询端口

netstat -ano | findstr “123456”

TCP 127.0.0.1:1234 0.0.0.0:0 LISTENING 6789

2.查询端口名

tasklist | findstr “6789”

studio64.exe 6789 Console 3 1,385,024 K

3.关闭端口

taskkill /pid “6789” /F

需要做网站?需要网络推广?欢迎咨询客户经理 13272073477