WSGI

WSGI web服務接口。
APACHE 分擔請求負擔。
supervisor 是用 Python 開發的一個 client/server 服務,是Linux/Unix系統下的一個進程管理工具。能夠很方便的監聽、啓動、中止、重啓一個或多個進程。用supervisor管理的進程,當一個進程意外被殺死,supervisor監聽到進程死後,會自動將它重啓,很方便的作到進程自動恢復的功能,再也不須要本身寫shell腳原本控制。
gunicorn 是一個 wsgi http server ,只支持在Unix系統上運行。

wsgi:
參考:
https://www.jianshu.com/p/c66d3adeaaed
http://www.pianshen.com/article/9262135675/

WSGI至關因而Web服務器和Python應用程序之間的橋樑。

gunicorn, uwsgi就是實現了WSGI server協議的web server.
Django,Flask等等就是實現了WSGI application協議的 web framework。


使用gunicorn和supervisor部署
https://www.jianshu.com/p/bbd0b4cfcac9

WSGI及gunicorn指北(一)
https://www.cnblogs.com/yuwhuawang/p/wsgi.html

Linux:先後端項目部署(vue + drf)(基於nginx + uwsgi)
https://www.cnblogs.com/cyycyhcbw/articles/10218458.html

mac下supervisor安裝及簡單配置
https://www.jianshu.com/p/050273859836
相關文章
相關標籤/搜索