
Gunicorn
梦实学习室
渐入佳境
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ubuntu + Nginx + Gunicorn + Flask 部署项目
1、安装Gunicornpip install gunicorn2、编写测试程序#文件名: test.pyfrom flask import Flaskfrom werkzeug.middleware.proxy_fix import ProxyFixapp = Flask(__name__)@app.route('/')def hello_world(): return 'Hello World!'if __name__ == '__main__':原创 2021-12-03 11:05:23 · 2558 阅读 · 0 评论 -
Gunicorn(绿色独角兽)Python WSGI的HTTP服务器
GunicornGunicorn(绿色独角兽)是一个Python WSGI的HTTP服务器。从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器与各种Web框架兼容,实现非常简单,轻量级的资源消耗。Gunicorn直接用命令启动,不需要编写配置文件,相对uWSGI要容易很多。安装gunicornpip install gunicorn查看命令行选项:安装gun...原创 2019-08-11 20:38:23 · 1191 阅读 · 1 评论