python - 用于生产的 Python http 服务器
问题描述
Python 文档声称,“不建议将 http.server 用于生产。它只实现基本的安全检查。”
是否有另一个简单易用的 Python 服务器(如 http.server),具有“高级”安全检查功能,可用于生产?
(我想在 Raspberri Pi 上运行 http 服务器,它将为静态网站提供服务)
谢谢!
解决方案
我推荐 Gunicorn 或其他 WSGI Server 之类的东西。
此外,Flask 文档中有一些关于部署 Python 应用程序的好提示,这些提示不仅适用于 Flask。
推荐阅读
- orientdb2.2 - 从 OrientDB 获取批处理结果
- javascript - 为什么我必须更改 firebase-functions-test 的源代码才能发送我的私钥的路径?
- cordova - 在 Ionic2 中使用 Cordova navigator.notification.alert
- arrays - Binary operator '+' cannot be applied to two 'Set
' operands Error - c# - 为什么我可以将枚举与 null 进行比较?
- javascript - vue.js - 如何将对象数组拆分为多个 div 列
- windows - 批处理不起作用:编译一个 .txt 文件
- ruby - 在 Ruby 中存储 switch case 的结果
- android - Android BLE 智能手环
- android - 在 android APK 中找不到“cert.rsa”文件