在Ubuntu中将CELERY作为守护程序运行 [英] Run CELERY as Daemon in Ubuntu

查看:42
本文介绍了在Ubuntu中将CELERY作为守护程序运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ubuntu中将celery作为Daemon服务运行,而不是每次都运行" celery -projname worker -l info "命令.

How to run celery as Daemon service in ubuntu instead of running "celery -A projname worker -l info" command each time.

我正在使用celery 3.1.8版本....

I am using celery 3.1.8 version....

推荐答案

您可以使用配置文件要加载到/etc/default/celeryd 中的脚本.

You can make celery into a daemon with the init.d script from celery's repo (Save it to /etc/init.d/). You will also need to create a configuration file for the script to load in /etc/default/celeryd.

这是完整的芹菜文档.

这篇关于在Ubuntu中将CELERY作为守护程序运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆