我安装 python 并python -m SimpleHTTPServer在 Windows WSL 中启动。但该命令netstat -an返回一个空列表。当然,我无法在 Windows 浏览器中访问 url http://127.0.0.1:8000。
python -m SimpleHTTPServer
netstat -an
此外,任何暴露端口(如 ssh)的命令都不起作用。
这是我的 Windows 版本:
以下是截图:
netstat windows-10 windows-subsystem-for-linux
netstat ×1
windows-10 ×1
windows-subsystem-for-linux ×1