python 的部署 就差 supervisor 了 supervisor 怎么也起不来 centos+supervisor+gunicorn+django - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
xargs

python 的部署 就差 supervisor 了 supervisor 怎么也起不来 centos+supervisor+gunicorn+django

  •  
  •   xargs Aug 1, 2015 41163 views
    This topic created in 3925 days ago, the information mentioned may be changed or developed.
    大家帮忙看看
    unix:///var/tmp/supervisor.sock no such file

    完全没有看到日志文件 /var/tmp/是空的

    配置如下:
    [unix_http_server]
    file=/var/tmp/supervisor.sock

    [supervisord]
    logfile=/tmp/supervisord.log
    logfile_maxbytes=50MB
    logfile_backups=10
    loglevel=info
    pidfile=/tmp/supervisord.pid
    nodaemon=false
    minfds=1024
    minprocs=200

    [rpcinterface:supervisor]
    supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

    [supervisorctl]
    serverurl=unix:///var/tmp/supervisor.sock ; use a unix:// URL for a unix socket

    [include]
    files = /etc/supervisor/conf.d/blog.conf

    blog.confr如下:
    [program:blog]
    command=/opt/www/bin/gunicorn --worker-class=gevent --chdir /opt/www/sblog/mysite mysite.wsgi -b 127.0.0.1:8000
    user=root
    autostart=true
    autorestart=true
    stdout_logfile=/opt/www/log_self/supervisor_out_gunicorn_blog.log
    stderr_logfile=/opt/www/log_self/supervisor_err_gunicorn_blog.log

    centos6.5 supervisor3.1

    交流一下
    25 replies    2019-11-14 17:17:28 +08:00
    pixstone
        1
    pixstone  
       Aug 1, 2015
    [supervisord]
    section中加入 user = root 试下
    oclock
        2
    oclock  
       Aug 1, 2015
    Try circus
    simpleapples
        3
    simpleapples  
       Aug 1, 2015
    直接运行/opt/www/bin/gunicorn --worker-class=gevent --chdir /opt/www/sblog/mysite mysite.wsgi -b 127.0.0.1:8000 可以启动起来么
    xargs
        4
    xargs  
    OP
       Aug 1, 2015
    @simpleapples 可以的
    xargs
        5
    xargs  
    OP
       Aug 1, 2015
    你说的应该是网络上有说过的方法
    yongzhong
        6
    yongzhong  
       Aug 1, 2015
    我启动supervisor遇到Error: Cannot open an HTTP server: socket.error reported errno.ENOENT (2)
    xargs
        7
    xargs  
    OP
       Aug 1, 2015
    @yongzhong 你是怎么启动的
    xargs
        8
    xargs  
    OP
       Aug 1, 2015
    我这个是启动时没创建sock的文件 后面就找不到
    我用 supervisorctl reread会报错如下:
    error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/local/lib/python2.7/socket.py line: 228
    xargs
        9
    xargs  
    OP
       Aug 1, 2015
    用supervisorctl start all报错如题

    unix:///tmp/supervisor.sock no such file
    yongzhong
        10
    yongzhong  
       Aug 1, 2015
    @xargs supervisord -c supervisord.conf
    xargs
        11
    xargs  
    OP
       Aug 1, 2015
    @yongzhong 你应该有日志吧 去看日志吧 我这没有日志
    raptor
        12
    raptor  
       Aug 1, 2015 via Android
    sudo supervisorctl ....
    yongzhong
        13
    yongzhong  
       Aug 1, 2015
    @xargs supervisord和program日志里都是空的
    xargs
        14
    xargs  
    OP
       Aug 1, 2015
    @yongzhong 你直接supervisorctl 报啥错
    xargs
        15
    xargs  
    OP
       Aug 1, 2015   1
    我真是无语死了 我都想找个洞钻进去 我一直不知道怎么启动的
    就是
    supervisord
    就可以启动了 我还在用supervisorctl 这那的
    我搞了一天了 最后随便打命令 搞清楚了
    不说了 我去挖洞去
    yongzhong
        16
    yongzhong  
       Aug 1, 2015
    @xargs unix:///tmp/supervisor.sock refused connection
    yongzhong
        17
    yongzhong  
       Aug 1, 2015
    我删除了以前运行生成的supervisor.sock文件,然后重新运行supervisord -c 和supervisorctl就又可以了!
    zeayes
        18
    zeayes  
       Aug 1, 2015   1
    supervisord是服务端,是个deamon,supervisorctl是客户。
    wong2
        19
    wong2  
       Aug 1, 2015
    ls正解
    xargs
        20
    xargs  
    OP
       Aug 1, 2015
    @zeayes 你为什么不早点出现
    sweetpotato
        21
    sweetpotato  
       Aug 2, 2015 via Android
    上面正解,服务没起来
    zeayes
        22
    zeayes  
       Aug 2, 2015
    @xargs 最近刷v站的频率小很多了。。。
    xargs
        23
    xargs  
    OP
       Aug 2, 2015
    @zeayes 忙啥
    zeayes
        24
    zeayes  
       Aug 3, 2015
    @xargs 新项目
    tmackan
        25
    tmackan  
       Nov 14, 2019
    哎 sudo 以后就好了
    About     Help     Advertise     Blog     API     FAQ     Solana     2775 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 59ms UTC 14:03 PVG 22:03 LAX 07:03 JFK 10:03
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86