使用Python快速搭建Web服务
python -m SimpleHTTPServer 8000
Python3
python3 -m http.server 8000
进入文件目录,后台持续运行
nohup python3 -m http.server 8000 >> ~/out.log 2>&1 &
进入 http://ip:8000,如果文件目录有index.htm 或 index.html则显示网页内容,
否则显示文件列表。
使用Python快速搭建Web服务
python -m SimpleHTTPServer 8000
Python3
python3 -m http.server 8000
进入文件目录,后台持续运行
nohup python3 -m http.server 8000 >> ~/out.log 2>&1 &
进入 http://ip:8000,如果文件目录有index.htm 或 index.html则显示网页内容,
否则显示文件列表。