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

2015-08-01 20:30:58 +08:00
 xargs
大家帮忙看看
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

交流一下
40296 次点击
所在节点    Python
25 条回复
sweetpotato
2015-08-02 00:13:29 +08:00
上面正解,服务没起来
zeayes
2015-08-02 07:57:55 +08:00
@xargs 最近刷v站的频率小很多了。。。
xargs
2015-08-02 15:12:49 +08:00
@zeayes 忙啥
zeayes
2015-08-03 09:45:17 +08:00
@xargs 新项目
tmackan
2019-11-14 17:17:28 +08:00
哎 sudo 以后就好了

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

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

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

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

© 2021 V2EX