pull/4/head
liruyu 2 years ago
parent 5b4e3022b5
commit c6316bdef5

@ -738,6 +738,25 @@ unzip file1.zip # 解压一个zip格式压缩包
## Python
### SimpleHTTPServer
SimpleHTTPServer是Python 2自带的一个模块是Python的Web服务器。在Python 3已经合并到http.server模块中。如果不指定端口号默认的是8000端口。使用python在服务器上暴露HTTP端口并用于下载日志文件
```shell
# python2语法
python -m SimpleHTTPServer 8000
# python3语法
python -m http.server 8000
# 访问地址
http://172.32.1.23:8000/
```
## Statistics
```shell

Loading…
Cancel
Save