CentOS 的 init.d 芹菜脚本? [英] init.d celery script for CentOS?

查看:20
本文介绍了CentOS 的 init.d 芹菜脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个使用 celery 的 Django 应用程序.到目前为止,我一直在 Ubuntu 上运行,但我正在尝试部署到 CentOS.

I'm writing a Django app that uses celery. So far I've been running on Ubuntu, but I'm trying to deploy to CentOS.

Celery 为基于 Debian 的发行版提供了一个不错的 init.d 脚本,但它不适用于 CentOS 等基于 RedHat 的发行版,因为它使用 start-stop-daemon.有没有人有一个等效的 RedHat 使用相同的变量约定,所以我可以重用我的/etc/default/celeryd 文件?

Celery comes with a nice init.d script for Debian-based distributions, but it doesn't work on RedHat-based distributions like CentOS because it uses start-stop-daemon. Does anybody have an equivalent one for RedHat that uses the same variable conventions so I can reuse my /etc/default/celeryd file?

推荐答案

这里更好解决:

Celery CentOS 初始化脚本

你应该很好用那个

这篇关于CentOS 的 init.d 芹菜脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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