linux - 在 Raspberry Pi 上部署

标签 linux flask

我正在查看 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

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/

相关文章:

linux - 从脚本更改 shell 目录?

linux - 在 tcsh 中隐藏 stderr 和管道 stdout

python - 为使用 Flask 发送的电子邮件创建一个安全的退订链接

linux - 无法从 crontab 执行脚本 - 没有这样的文件或目录

linux - 过滤 Linux 命令输出

python - IE9 挂掉本地 Flask 实例

javascript - 使用 flaskr 和 jinja2 运行 highcharts

python - 在 Sqlalchemy 上删除多对多关系(关联对象)

html - Flask网页路由是否在结尾处使用正斜杠?

linux - Vim 语法颜色对某些文件关闭