V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
7469616e
V2EX  ›  Python

我想知道,大家用nginx+uwsgi跑python还是用lighttpd+FastCGI

  •  
  •   7469616e · 2012-07-14 20:41:50 +08:00 · 7056 次点击
    这是一个创建于 4293 天前的主题,其中的信息可能已经有所发展或是发生改变。
    另外我用的是VPS 512内存,debian 6.0
    21 条回复    1970-01-01 08:00:00 +08:00
    ahu
        1
    ahu  
       2012-07-14 20:42:36 +08:00
    我觉得还是前者吧
    phuslu
        2
    phuslu  
       2012-07-14 20:48:00 +08:00   ❤️ 2
    我们 nginx+gevent 和 gunicron+gevent 跑 python
    yoyicue
        3
    yoyicue  
       2012-07-14 20:49:09 +08:00   ❤️ 2
    推荐 gunicron
    7469616e
        4
    7469616e  
    OP
       2012-07-14 20:49:19 +08:00
    @phuslu 嗯哼,我去google一下 看看有没有相关的配置资料
    7469616e
        5
    7469616e  
    OP
       2012-07-14 20:53:24 +08:00
    @yoyicue 囧 ,在google上搜索gunicron gevent各种英文 头疼的一米啊~~~
    7469616e
        6
    7469616e  
    OP
       2012-07-14 21:12:51 +08:00
    @yoyicue 亲,大概是这样的嘛?nginx(proxy) + gunicorn +framework ????
    7469616e
        7
    7469616e  
    OP
       2012-07-14 21:19:20 +08:00
    @phuslu 坑爹啊,你居然打错了 应该是gunicorn
    chairo
        8
    chairo  
       2012-07-14 21:20:42 +08:00
    我用的第一个……
    7469616e
        9
    7469616e  
    OP
       2012-07-14 21:51:04 +08:00
    @chairo 亲,有相关的配置文档嘛?我很感兴趣
    iiduce
        10
    iiduce  
       2012-07-14 21:54:38 +08:00
    nginx+uwsgi 记得看过一个老外的各种方案性能对比,这种是最好的(linux系统下)。
    linnchord
        11
    linnchord  
       2012-07-14 21:57:41 +08:00   ❤️ 1
    nginx+uwsgi和nginx+gunicorn都可以,方便快捷,性能相差不大。
    FastCGI还是算了吧,古董了算是。
    gevent除非确定业务或性能有特别需求,否则没必要。
    okidogi
        12
    okidogi  
       2012-07-14 22:04:29 +08:00
    推荐nginx+gunicorn, instagram就在用,说明性能还不错。一个简单的教程:
    A Django setup using Nginx and Gunicorn: http://senko.net/en/django-nginx-gunicorn/
    chairo
        13
    chairo  
       2012-07-14 22:38:03 +08:00
    @7469616e uwsgi和nginx的wiki上就有相关资料的。我自己的配置得明天晚上才能发出来,现在在老家,电脑没ftp ssh啥的
    kojp
        14
    kojp  
       2012-07-15 10:10:18 +08:00
    nginx+FastCGI 目前用的这个。
    ivanlee
        15
    ivanlee  
       2012-07-15 10:45:05 +08:00
    nginx+uwsgi
    7469616e
        16
    7469616e  
    OP
       2012-07-15 11:29:52 +08:00
    @okidogi 嗯哼~,我去看看
    7469616e
        17
    7469616e  
    OP
       2012-07-15 11:30:22 +08:00
    @chairo 我等着你油亲~~~
    chairo
        18
    chairo  
       2012-07-16 09:08:17 +08:00
    7469616e
        19
    7469616e  
    OP
       2012-07-16 10:13:33 +08:00
    @chairo 亲,能给我留一个gtalk或者qq,之类的联系方式嘛?
    chairo
        20
    chairo  
       2012-07-16 11:24:25 +08:00
    @7469616e QQ65130604
    CMGS
        21
    CMGS  
       2012-07-17 09:30:14 +08:00
    gevent+gunicorn+nginx
    确定型业务会换成进程sync模型,嗯
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5460 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 07:45 · PVG 15:45 · LAX 00:45 · JFK 03:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.