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

部署网站时 supervisor 怎么也拉不起 uwsgi 怎么回事? django

  •  1
     
  •   Hipponensis · 2015-12-16 16:35:47 +08:00 · 2104 次点击
    这是一个创建于 3055 天前的主题,其中的信息可能已经有所发展或是发生改变。
    新手刚学者用 Django 做了个网站: http://chat.hipponensis.com
    虽然上线了,但是 supervisor 启动不了 uwsgi ,想问问是怎么回事?

    这里贴配置 /srv/demo/django_capsule_chat/uwsgi.ini :

    [uwsgi]
    socket = /srv/demo/django_capsule_chat/chat.sock
    chdir = /srv/demo/django_capsule_chat/
    wsgi-file = django_capsule_chat/wsgi.py
    touch-reload = /srv/demo/django_capsule_chat/reload
    processes = 4
    master = true
    # chmod-socket = 666
    # chown-socket = root:www-data
    module = django_capsule_chat.wsgi:application
    # home = /path/to/virtualenv
    # vacuum = true


    以及 /etc/supervisord.conf :

    [program:django_capsule_chat]
    command=uwsgi --ini /srv/demo/django_capsule_chat/uwsgi.ini
    directory = /srv/demo/django_capsule_chat
    startsecs=0
    stopwaitsecs=0
    autostart=true
    autorestart=true



    另外想问问大家,新手面试 Python 岗位主要会被考验哪方面的能力?之前看到些别人的经验,都说会考很多算法,但这方面我基础不好,只做了几个 leetcode 简单题,会不会要求很高?(本人是新手转行, 90 年底,电气自动化专业)求解惑!
    2 条回复    2015-12-16 17:19:25 +08:00
    28ms
        1
    28ms  
       2015-12-16 17:17:01 +08:00
    排除法先确定单独启动 uwsgi 没有问题,再看 supervisord 的日志找报错。
    GitFree
        2
    GitFree  
       2015-12-16 17:19:25 +08:00 via Android
    看下 superior 和 uwsgi 日志就知道了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1514 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:53 · PVG 00:53 · LAX 09:53 · JFK 12:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.