supervisord 安装和相关几个衍生问题汇总

in Linux with 0 comment
随手记一下,因为总是记不住 supervisor 导致的那几个乱七八糟的目录和问题

首先 supervisor 的安装简单不过了,这里直接参考官方文档即可

http://supervisord.org/installing.html

备注一些问题

> 配置文件
whereis supervisord.conf

> 启动
supervisord -c supervisord.conf
vi /etc/supervisord.conf
> 在最后一行
[include]
files = /etc/supervisor/*.ini
[program:laravel-service-api]
command=./main
directory=/www/panliang/im-service/
autorestart=true
startsecs=3
priority=999
startretries=3
stdout_logfile=/www/panliang/logs/im_service_out.log
stderr_logfile=/www/panliang/logs/im_service_err.log
stdout_logfile_maxbytes=2MB
stderr_logfile_maxbytes=2MB
user=root
process_name=%(program_name)s_%(process_num)02d
supervisorctl status
supervisorctl start <name>
supervisorctl start start all
supervisorctl stop all

Comments are closed.