“无法获取所有权信息”是什么意思? Netstat -ab 是什么意思?
(Windows 7 x86)
如果我运行 netstat -ab
,我会获得活动连接的列表,以及已打开连接的应用程序的名称。
但是,一些连接(包括我的应用程序打开的连接)列出为:
无法获取所有权信息
?
谢谢,
达伦。
(Windows 7 x86)
If I run netstat -ab
, I get a list of active connections, along with the names of the applications which have opened the connections.
However, some connections (including the one opened by my app) are listed as:
Can not obtain ownership information
Why?
Thanks,
Darren.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
运行 netstat -ano 并查看其所属的 PID。
Run
netstat -ano
and look at the PID that it is under.如果添加“-o”选项,您将看到 PID 值,很可能是 PID 4,即系统 PID。这意味着它可能是一项服务。 (请注意,Windows 7 将报告“PID 4”,而 Windows XP 将报告“系统”)。
此链接提供了一些关于它可能是什么的想法:https ://superuser.com/questions/43307/whys-is-system-process-listening-on-port-80?rq=1
If you add the '-o' option, you'll see the PID values, and likely it will be PID 4, which is the System PID. This means it is probably a Service. (Note that Windows 7 will report "PID 4", while Windows XP will report "System").
This link gives some ideas of what it might be: https://superuser.com/questions/43307/whys-is-system-process-listening-on-port-80?rq=1
如果使用的端口是 137、138 或 139,则可能是 NETBIOS。在我的 Win7 系统上,从网络和共享中心禁用所有网络适配器上的 NETBIOS 会使连接从 netstat 中消失。
我将此作为新答案发布,因为上面链接的其他问题受到保护,我无法以访客身份回复这些答案。希望这能帮助像我这样偶然发现这个问题的人。
It's probably NETBIOS, if the port used is 137, 138, or 139. On my Win7 system, disabling NETBIOS on all my network adapters from the Network and Sharing Center made the connections disappear from netstat.
I'm posting this as a new answer because the other questions linked above are protected, and I can't reply to those answers as a guest. Hopefully this will help people like me who stumble onto this question.
最近刚刚经历过这个,只是为了添加答案。运行 .NET Web 服务器时,传入的 Web 连接经常会发生这种情况。他们似乎获得了 PID 0(系统空闲),这只是连接的保留位置。它说“无法获取这些的所有权信息”。
很好地描述了为什么它在 PID 0 上,TCP 连接由 pid 0 拥有
Just went through this lately, just to add to the answers already. Running a .NET webserver, it often happens with incoming web connections. They seem to get PID 0 (System Idle) which is just a holding place for connections. It says "Can not obtain ownership information" for these.
Good description of why its on PID 0, TCP connection owned by pid zero