泡面师

  • 首页
  • 记录
好记性不如烂笔头
  1. 首页
  2. 记录
  3. centos
  4. 正文

centos安装supervisor

2019-03-23 3066点热度 2人点赞 0条评论

安装supervisor

pip install supervisor

重定向默认配置文件

echo_supervisord_conf > /etc/supervisor/supervisord.conf

如果报错pkg_resources.DistributionNotFound: meld3>=0.6.5

注释/usr/lib/python2.6/site-packages/supervisor-3.3.4-py2.6.egg-info/requires.txt的#meld3 >= 0.6.5

开启配置文件加载 修改文件/etc/supervisor/supervisord.conf

[include]
files=/etc/supervisor/*.ini

新建一个任务文件

[program:email]
command=php artisan queue:listen --queue=email
directory=/data/wwwroot/www.lgzyw.com
stdout_logfile=/data/wwwlogs/email.log
stderr_logfile=/data/wwwlogs/email.log
autostart=true
autorestart=true
startsecs=10
priority=998

启动

supervisord -c  /etc/supervisor/supervisord.conf

如果增加任务,就在/etc/supervisor下新增.ini文件,然后进入

supervisorctl
update
标签: centos
最后更新:2019-03-23

泡面师

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

取消回复

COPYRIGHT © 2024 泡面师. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS