windows 常用查端口命令
windows 常用查端口命令
1,查看端口占用情况
1 | netstat -ano |
2,查看某个端口被占用的情况
1 | netstat -ano | findstr xxxx //xxxx为查询的端口号 |
3,查看某个状态的端口
1 | netstat -ano | findstr xxxx //xxxx为查询的端口状态 |
4,查看使用指定端口的应用程序
1 | tasklist | findstr xxxx //xxxx指的是pid |
5,结束指定进程
1 | taskkill /pid xxxx -t -f //xxxx指的是pid |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Zsh的树洞!
