下载并安装Python,例如这里想把命令D:\oidproducer使用教程作为提供下载的目录,那么在cmd里cd到该目录下,并执行命令:
python.exe -m SimpleHTTPServer
如果提示错误:
No module named SimpleHTTPServer
则试一下命令:
python.exe -m http.server
命令过程:
PS D:\oidproducer使用教程> python -m SimpleHTTPServer
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe: No module named SimpleHTTPServer
PS D:\oidproducer使用教程> python.exe -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
192.168.0.136 - - [05/Jul/2018 10:39:30] "GET / HTTP/1.1" 200 -
192.168.0.136 - - [05/Jul/2018 10:39:30] code 404, message File not found
192.168.0.136 - - [05/Jul/2018 10:39:30] "GET /favicon.ico HTTP/1.1" 404 -
192.168.0.136 - - [05/Jul/2018 10:39:37] "GET /presetAudio.mp4 HTTP/1.1" 200 -