我正在查看 http://flask.pocoo.org/docs/0.10/deploying/但我对 Linux Web 服务器不是很熟悉。我可以知道我应该使用的是 CGI 选项还是 mod_wsgi (Apache) 选项吗?
最佳答案
就我而言,我对 nginx 非常满意
nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP proxy server, originally written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VK, and Rambler. According to Netcraft, nginx served or proxied 24.33% busiest sites in January 2016. Here are some of the success stories: Netflix, Wordpress.com, FastMail.FM.
Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork worker model ported from Ruby's Unicorn project. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resources, and fairly speedy.
Here是一篇关于使用 flask 在 linux 平台上部署的好文章。
关于linux - 在 Raspberry Pi 上部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35237240/