supervisord

解决unix:///tmp/supervisor.sock no such file的问题

自古美人都是妖i 提交于 2019-12-03 18:11:29
1、打开配置文件 vim /etc/supervisord.conf 这里把所有的/tmp路径改掉,/tmp/supervisor.sock 改成 /var/run/supervisor.sock,/tmp/supervisord.log 改成 /var/log/supervisor.log,/tmp/supervisord.pid 改成 /var/run/supervisor.pid 要不容易被linux自动清掉 2、修改权限 sudo chmod 777 /run sudo chmod 777 /var/log 如果没改,启动报错 IOError: [Errno 13] Permission denied: '/var/log/supervisord.log' 3、创建supervisor.sock sudo touch /var/run/supervisor.sock sudo chmod 777 /var/run/supervisor.sock 4、启动supervisord,注意stop之前的实例或杀死进程 supervisord 来源: CSDN 作者: Horizon_LGMH 链接: https://blog.csdn.net/qq_28885149/article/details/79364685

Web方式管理后台进程:Supervisor

北城余情 提交于 2019-12-03 18:11:10
简介 Supervisor是一个可以监控多个进程的C/S系统,不支持Windows,基于Python语言开发。 安装 使用PIP安装 pip install supervisor 配置 配置文件位置和格式 supervisor默认从以下目录开始搜索配置文件: $CWD/supervisord.conf $CWD/etc/supervisord.conf /etc/supervisord.conf /etc/supervisor/supervisord.conf (since Supervisor 3.3.0) ../etc/supervisord.conf (Relative to the executable) ../supervisord.conf (Relative to the executable) 也可以使用命令supervisord和supervisorctl的 -c 参数来指定配置文件。 配置文件格式是windows ini文件格式,就是可以用ConfigParser模块解析的格式。 添加要监控的子程序 [program:example] command= /usr/bin/example --loglevel=%(ENV_LOGLEVEL)s %(ENV_LOGLEVEL) 表示日志等级。 更多例子: Apache [program:apache2]

进程管理工具 supervisord 即使supervisorctl 命令的使用

你。 提交于 2019-12-03 18:09:08
启动supervisord服务 //注意配置文件的路径 supervisord -c /etc/supervisord.conf sudo supervisorctl //进入客户端 如何没有启动服务 出现 :unix:///tmp/supervisor.sock no such file 进入客户端执行命令 supervisor>shutdown //关闭服务 supervisor>reload //重载配置 来源: CSDN 作者: 子静静 链接: https://blog.csdn.net/yang_yang1994/article/details/78072753

运行supervisord -c /etc/supervisor/supervisord.conf 出错,解决办法

余生长醉 提交于 2019-12-03 18:08:50
坑都让我踩了。。。。。。 1 supervisord -c /etc/supervisor/supervisord.conf 什么意思? 答:手动启动:supervisord 具体详见 :supervisord监控服务常用技巧 2 运行supervisord -c /etc/supervisor/supervisord.conf 出现“Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.” 解决办法 答: find / -name supervisor.sock unlink /name/supervisor.sock 如: 转载于:https://www.cnblogs.com/mhq-martin/p/8649654.html 来源: CSDN 作者: weixin_30480651 链接: https://blog.csdn.net/weixin_30480651/article/details/96251258

supervisord 常见问题处理

泄露秘密 提交于 2019-12-03 18:08:21
1、unix:///tmp/supervisor.sock refused connection supervisord -c /etc/supervisord.conf 2、Unlinking stale socket /tmp/supervisor.sock unlink /tmp/supervisor.sock 3、启动指定服务 supervisorctl restart xxx 来源: CSDN 作者: ably_clove 链接: https://blog.csdn.net/Ably_Clove/article/details/82319830

How to use Django logging with gunicorn

两盒软妹~` 提交于 2019-12-03 17:37:02
问题 I have a Django 1.6 site running with gunicorn, managed by supervisor. During tests and runserver I have logging on the console, but with gunicorn the statements don't show up anywhere (not even ERROR level logs). They should be in /var/log/supervisor/foo-stderr---supervisor-51QcIl.log but they're not. I have celery running on a different machine using supervisor and its debug statements show up fine in its supervisor error file. Edit: Running gunicorn in the foreground shows that none of my

Supervisor open file limit won't change when using Chef

独自空忆成欢 提交于 2019-12-03 16:53:08
I am modifying /etc/security/limits.conf on the machine, and then installing Supervisor in a Chef recipe. After the recipe run finishes, if I run cat /proc/<process id>/limits I see: Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max open files 1024 4096 files If I log into the machine and run service supervisor restart , the max open files is then set correctly. However, if I run this command in the recipe (right after installing supervisor, at the very end of the recipe, anything) the limit does not change. It is not until I log in and manually run that command

fig docker monitoring broken container

℡╲_俬逩灬. 提交于 2019-12-03 16:13:24
I have a fig configuration for launch N dockers containers (app, redis, mongo, postgre, etc...) When I run fig up everything is ok. Name Command State Ports -------------------------------------------------------------------------- my_mongodb_1 /usr/local/bin/run Up 28017/tcp, 27017/tcp my_redis_1 /usr/local/bin/run Up 6379/tcp my_pg_1 /usr/local/bin/run Up 5432/tcp my_app_1 ... Up 443->443/tcp, 80->80/tcp but for one not important reason one of this containers could be turned off. Name Command State Ports -------------------------------------------------------------------------- my_mongodb_1

How to setup a group in supervisord?

≡放荡痞女 提交于 2019-12-03 14:58:56
问题 So I'm setting up supervisord and trying to control several processes and that all works fine, now I want to setup a group so I can start/stop different sets of processes rather than all or nothing. Here's a snippet of my config file. [group:tapjoy] programs=tapjoy-game1,tapjoy-game2 [program:tapjoy-game1] command=python tapjoy_pinger.py -g game1 directory=/go/here/first redirect_stderr=true autostart=true autorestart=true stopasgroup=true killasgroup=true [program:tapjoy-game2] command

Running multiple Laravel queue workers using Supervisor

佐手、 提交于 2019-12-03 14:43:33
I using Laravel queues using a database driver and supervisor to keep a queue worker running all the time: [program:laravel_queue] command=php artisan queue:listen --timeout=1800 --tries=5 directory=/var/app/current stdout_logfile=/var/app/support/logs/laravel-queue.log logfile_maxbytes=0 logfile_backups=0 redirect_stderr=true autostart=true autorestart=true startretries=86400 EOB Some of the queue tasks can take around 10 minutes to complete. I have 2 parts to the question: 1) How can i edit the above script to run multiple (e.g. 3) queue workers on the same queue. 2) Is there a way of