简体   繁体   English

Windows和Unix下多个端口的Netstat命令

[英]Netstat command for multiple ports under windows and unix

How can I determine the services which are listening on a port bigger than 8000 using the netstat command under windows and unix? 如何在Windows和UNIX下使用netstat命令确定正在侦听大于8000的端口的服务?

Could you help me out, please? 你能帮我一下吗?

On Windows you need to run a command console as administrator. 在Windows上,您需要以管理员身份运行命令控制台。 Then execute 然后执行

netstat -ab

The b lists the executable program that is doing the listening. b列出了正在监听的可执行程序。 you should be able to match that to the services. 您应该能够将其与服务相匹配。

I don't think netstat is selective on the ports, if you are not seeing any beyond 8000 then there is no activity or listening there. 我认为netstat在端口上不是选择性的,如果您看不到超过8000的端口,则那里没有活动或在听。

This works on windows. 这适用于Windows。 Not sure if this is also the case on unix. 不知道在Unix上是否也是如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM