查看特定端口的命令行 [英] Command line for looking at specific port

查看:28
本文介绍了查看特定端口的命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从 Windows 命令行检查特定端口的状态?我知道我可以使用 netstat 检查所有端口,但 netstat 很慢,而查看特定端口可能不是.

Is there a way to examine the status of a specific port from the Windows command line? I know I can use netstat to examine all ports but netstat is slow and looking at a specific port probably isn't.

推荐答案

这里是端口查找的简单解决方案...

Here is the easy solution of port finding...

在cmd中:

netstat -na | find "8080"

在 bash 中:

netstat -na | grep "8080"

在 PowerShell 中:

In PowerShell:

netstat -na | Select-String "8080"

这篇关于查看特定端口的命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆