Python HTTP Server (Simples)

Simple HTTP Server

适合临时开发调试web 使用, 直接当前项目下使用python命令快速起一个http server

python2

python -m SimpleHTTPServer [port]

python3

python -m http.server [port]

(因为我没有装 python2, 所以直接用命令python )

注意

  • 警告 : 不推荐在生产环境中使用 http.server 。它只实现了基本的安全检查功能。

参考

原文地址:https://www.cnblogs.com/52liming/p/12735897.html