gunicorn
Python 的 WSGI HTTP 服务器。 更多信息:https://manned.org/gunicorn。
- 运行 Python web 应用程序:
gunicorn
- 在 localhost 上监听 8080 端口:
gunicorn localhost:8080
- 启用实时自动加载:
gunicorn --reload
- 使用 4 个工作进程处理请求:
gunicorn 4
- 使用 4 个工作线程处理请求:
gunicorn --threads 4
- 通过 HTTPS 运行应用程序:
gunicorn --certfile --keyfile
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
