Simple HTTP Server

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

python2

python -m SimpleHTTPServer [port]

python3

python -m http.server [port]

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

注意

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

参考

相关文章:

  • 2022-12-23
  • 2021-06-27
  • 2022-01-10
  • 2021-12-06
  • 2022-02-12
  • 2021-07-24
  • 2021-06-28
  • 2021-12-04
猜你喜欢
  • 2021-06-07
  • 2022-02-26
  • 2022-01-25
  • 2021-06-24
  • 2022-01-24
  • 2022-12-23
相关资源
相似解决方案