![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Gunicorn
limengshi138392
菜鸟
展开
-
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 · 2476 阅读 · 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 · 1081 阅读 · 1 评论