请问在 LNMP 环境下加入什么 Python 模块性能最好呢?

2011 年 12 月 27 日
 evlos
VPS上面现在运行的是 apache nginx mysql memcached php。
PHP由apache来跑,nginx做前端代理。

因为部分网站在跑 Wordpress 所以不能移除php环境。

之前查了一下发现apache有mod_python。
nginx又可以配合uWsgi。

请问如果要加入 python + redis 环境的话用什么方式性能最好呢?
5054 次点击
所在节点    Python
10 条回复
evlos
2011 年 12 月 27 日
啊,纠正一下是 LNMPA (Linux Nginx Mysql PHP Apache)
SErHo
2011 年 12 月 27 日
使用Nginx配合uWSGI吧。
evlos
2011 年 12 月 27 日
@SErHo 嘿嘿,刚才看木有回复正打算 tweet 你。多谢建议,开搞 xD
alvin2ye
2011 年 12 月 27 日
LEMP 才对
clino
2011 年 12 月 27 日
apache 还有 mod_wsgi 可以选,这个比 mod_python 好
dndx
2011 年 12 月 27 日
试试Gevent + 反向代理吧。这个是最快的。
evlos
2011 年 12 月 27 日
@alvin2ye LEMPA 吧,还有一个 Apache ( ̄▽ ̄)
evlos
2011 年 12 月 27 日
@clino 已经在用 nginx+uwsgi 了,毕竟 nginx 在前
alvin2ye
2011 年 12 月 27 日
有 nginx 要 apache 干嘛??
iZr
2012 年 12 月 30 日
@evlos ( ̄▽ ̄) 这个如何输入。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/24466

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX