uWSGI 与 Cherokee:第一步

发布于 2024-09-05 06:12:37 字数 304 浏览 10 评论 0原文

有人尝试过在 Cherokee 中使用 uWSGI 吗?您能分享您的经验以及您最依赖哪些文件吗?我试图从两个(uWSGI 和 Cherokee)网站上的文档开始。目前还没有任何效果。我使用的是 Ubuntu 10.04。


Edit: To clarify, Cherokee has been working fine. I am getting the error message:

uWSGI 错误,未找到 wsgi 应用程序

所以我的配置一定有问题。或者也许是我的应用程序。

Has anyone tried using uWSGI with Cherokee? Can you share your experiences and what documents you relied upon the most? I am trying to get started from the documentation on both (uWSGI and Cherokee) websites. Nothing works yet. I am using Ubuntu 10.04.


Edit: To clarify, Cherokee has been working fine. I am getting the error message:

uWSGI Error, wsgi application not found

So something must be wrong with my configurations. Or maybe my application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

临走之时 2024-09-12 06:12:37

是的,我最近刚刚在 Ubuntu Lucid 中为 Pylons 应用程序设置了这个。

首先,我从 PPA 团队那里拿到了最新的切诺基。
https://launchpad.net/~cherokee-webserver/+archive/ppa

接下来,我通过 Pip 将最新的 uwsgi 安装到我的应用程序所在的 virtualenv 中,uwsgi 文档将引导您完成该过程。
http://projects.unbit.it/uwsgi/wiki/Install

我的应用程序是已经通过 mod_wsgi 部署,所以我希望重用我的 .wsgi 文件。我在正确获取 uwsgi 调用语法时遇到了问题,因此我在他们的邮件列表上得到了一些很大的帮助:
http://lists.unbit.it/pipermail/uwsgi/2010- June/000347.html

因此,我浏览了 cherokee Cookbook 中的文档,并将 uwsgi 行替换为我的邮件列表问题中回复的调整版本。

它工作得非常好,在测试对简单的 pylons 应用程序服务页面的点击时,其性能几乎超过了 mod_wsgi 2 倍。

希望有帮助。

Yep, I just recently set this up in Ubuntu Lucid for a Pylons app.

First, I grabbed the latest cherokee from the team PPA.
https://launchpad.net/~cherokee-webserver/+archive/ppa

Next I installed the uwsgi latest into my virtualenv my app lives in via Pip which the uwsgi docs walk you through.
http://projects.unbit.it/uwsgi/wiki/Install

My app was already deployed via mod_wsgi so I was looking to reuse my .wsgi file. I ran into an issue getting the syntax for the uwsgi call right so I got some great help on their mailing list:
http://lists.unbit.it/pipermail/uwsgi/2010-June/000347.html

So I went through the docs in the cherokee cookbook and replaced the uwsgi line with a tweaked version of what was replied in my mailing list question.

It works pretty sweet and almost outperformed mod_wsgi 2x in testing hits to a simple pylons app served page.

Hope that helps.

策马西风 2024-09-12 06:12:37

我让 cherokee + uwsgi + django 在 lucid 上运行。开始有点棘手(弄清楚如何将 uwsgi 指向 wsgi 文件对我来说也是最困难的部分),但我对结果非常满意。我在 http://blog.swwomm.com/2010 记录了我采取的步骤/06/cherokee-django.html

I got cherokee + uwsgi + django running on lucid. It was a little tricky getting going (figuring out how to point uwsgi to the wsgi file was the hardest part for me, too), but I'm quite happy with the results. I documented the steps I took at http://blog.swwomm.com/2010/06/cherokee-django.html.

記憶穿過時間隧道 2024-09-12 06:12:37

uwsgi 文档上的“make”安装方法似乎存在问题。请改用“python uwsgiconfig.py --build”。这对我有用。 Cherokee、Django 运行在 Ubuntu 10.10 上。

There seems to be an issue with the 'make' method of installation on the uwsgi docs. Use 'python uwsgiconfig.py --build' instead. That worked for me. Cherokee, Django running on Ubuntu 10.10.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文