python -m SimpleHTTPServer 8080
With python 2.x, you can use the SimpleHTTPServer module like this
python -m SimpleHTTPServer [port]
With python 3.x, use:
python -m http.server [port]
在浏览器输入 IP:8080 即可访问资源
Python simplehttpserver/后台运行
nohup python -m SimpleHTTPServer 80 &日志
nohup python -m SimpleHTTPServer 80 > /var/log/http &
1728



被折叠的 条评论
为什么被折叠?



