美文网首页
利用python建立简单的webserver

利用python建立简单的webserver

作者: 哎呀_落锦繁华 | 来源:发表于2017-04-06 20:41 被阅读0次

在指定目录下,执行

python -m SimpleHTTPServer 8080  # python2
python3 -m http.server 8080  # python3

8080指浏览器端口,可以自己更改

成功后,在浏览器输入 ip+端口即可访问

本机端口0.0.0.0或者127.0.0.1

相关文章

网友评论

      本文标题:利用python建立简单的webserver

      本文链接:https://www.haomeiwen.com/subject/aszqattx.html