0
jeanp (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。爲什麼在Git Bash上找不到ncat?
我安裝NCAT(PIP安裝NMAP):
jeanp Documents $ pip install nmap
Requirement already satisfied: nmap in c:\python36\lib\site-packages
然後,當我嘗試連接,CMD沒有找到。它在早些時候工作。不知道我是如何破壞它的。
jeanp Documents $ pip install nmap
Requirement already satisfied: nmap in c:\python36\lib\site-packages
jeanp Documents $ ncat -l 9999
bash: ncat: command not found
我在Windows上使用Git的bash中,我已經相應地設置了C盤上python36和改變ENV變量和路徑。