芹菜如何作为生产中的守护进程? [英] How to run celery as a daemon in production?

查看:119
本文介绍了芹菜如何作为生产中的守护进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在/ etc / defaults /中从代码中创建了一个celeryd文件:

i created a celeryd file in /etc/defaults/ from the code here:

https://github.com/celery/celery/blob/3.0/extra/generic-init.d/celeryd

现在,当我想运行celeryd作为一个守护进程,并执行此操作:sudo /etc/init.d/celerdy它说命令没有找到。我在哪里出错?

Now when I want to run celeryd as a daemon and do this: sudo /etc/init.d/celerdy it says command not found. Where am I going wrong?

推荐答案

我不知道你在做什么,但这些是运行芹菜的步骤守护进程。

I am not sure what you are doing here but these are the steps to run celery as a daemon.


  1. 链接中引用的文件
    https://github.com/celery/celery/blob/3.0/extra/generic-init.d/celeryd
    需要复制到您的 /etc/init.d 文件夹中,名称为
    celeryd

  2. 然后,您需要在文件夹
    / etc / default 中创建配置文件由
    脚本使用的名称 celeryd 。此配置文件基本上定义了某些变量
    和上述脚本使用的路径。以下是示例配置

  3. 此链接通用初始化脚本解释该过程,并可用于参考

  1. The file that you have referred in the link https://github.com/celery/celery/blob/3.0/extra/generic-init.d/celeryd needs to be copied in your /etc/init.d folder with the name celeryd
  2. Then you need to create a configuration file in the folder /etc/default with the name celeryd that is used by the above script. This configuration file basically defines certain variables and paths that are used by the above script. Here's an example configuration.
  3. This link Generic init scripts explains the process and can be used for reference

这篇关于芹菜如何作为生产中的守护进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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