uwsgi + django 通过 Nginx - uwsgi 设置/生成?
我的 Django 应用程序倾向于 uwsgi+nginx,任何人都可以分享启动我的 uwsgi 进程的最佳方法吗?有人有调整 uwsgi 的经验吗?
I am leaning towards uwsgi+nginx for my Django app, can anyone share the best method for starting up my uwsgi processes? Does anyone have experience tuning uwsgi?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
OSX Upstart/init 上启动
在 unice 上的
。 uwsgi也有它自己的进程管理器,所以你也可以运行它。
调整:
查看邮件列表,获取有关您特定要求的建议。 Uwsgi 非常棒,它是一个完整的部署解决方案。
0.8.40 以上的 Nginx 将默认构建 uwsgi 绑定,构建 nginx,构建 uwsgi 就可以了。
Launchd on OSX
Upstart/init on the unices.
uwsgi also has its own process manager, so you can just run that as well.
Tuning:
Check the mailing list, for advice on your particular requirements. Uwsgi is amazing, it is a complete deploy solution.
Nginx above 0.8.40 will build the uwsgi bindings by default, Build nginx, build uwsgi and you are golden.
这些是我在 fabfile.py 文件中使用的函数(如果您还没有,请查看 python Fabric):
在我的 uwsgi.ini 文件中,我指定:
对我来说,主要的功能是:
these are the functions i use in my fabfile.py file (check out python fabric if you haven't already):
In my uwsgi.ini file i specify:
for me the main gotyas were:
我将使用supervisord 来管理启动、停止过程。
I will go with supervisord for managing the starting, stoping process.