【发布时间】:2016-03-11 15:55:05
【问题描述】:
本地服务器使用 Python 2.7 中的 SimpleHTTPServer 模块运行
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
然后我使用 netstat 搜索使用 8000 作为端口号过滤器的套接字,但是,我找不到任何带有过滤器的套接字(即使我打开浏览器窗口并访问 127.0.0.1:8000)。
$ netstat | grep 8000
// "return Nothing"
有没有人知道为什么我在netstat 中看不到 Python SimpleHTTPServer 绑定的套接字?
【问题讨论】:
标签: python linux sockets tcp netstat