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
for8ever
V2EX  ›  Python

Flask + nginx1.6 + uwsgi 如何配置?

  •  
  •   for8ever ·
    hojas · 2014-08-07 16:16:38 +08:00 · 3127 次点击
    这是一个创建于 3521 天前的主题,其中的信息可能已经有所发展或是发生改变。
    按照网上的方法,搞了好久,一直不成功,对 nginx 不熟悉,求教啊!是在 ubuntu 环境下的。
    3 条回复    2014-08-08 13:44:41 +08:00
    hydrazt
        1
    hydrazt  
       2014-08-07 17:02:42 +08:00
    http://flask.pocoo.org/docs/deploying/uwsgi/
    按照这上面的步骤吧。
    ryd994
        3
    ryd994  
       2014-08-08 13:44:41 +08:00
    50x的话先看看nginx的log说什么
    然后telnet uwsgi的端口,看看端口开不开,另外有没有uwsgi的进程
    再看uwsgi的log

    错误信息放狗搜一搜一般就有答案了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3565 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 00:49 · PVG 08:49 · LAX 17:49 · JFK 20:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.