【发布时间】:2018-03-12 11:57:56
【问题描述】:
user_1 (master *) 1_EchoServer $ python -m http.server 8000
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
127.0.0.1 - - [30/Sep/2017 18:57:11] "GET / HTTP/1.1" 200 -
设置一个简单的服务器。我想用 ncat 连接它来学习 HTTP。
我安装ncat(pip install nmap):
user_1 Documents $ pip install nmap
Requirement already satisfied: nmap in c:\python36\lib\site-packages
然后,当我尝试连接时,找不到 cmd。它早些时候工作。不知道我是怎么弄坏的。
user_1 Documents $ pip install nmap
Requirement already satisfied: nmap in c:\python36\lib\site-packages
user_1 Documents $ ncat -l 9999
bash: ncat: command not found
我在 Windows 上使用 git bash,我已经在 c 驱动器上设置了 python36 并相应地更改了 env 变量和路径。
【问题讨论】: