擅长:python、mysql、java
<p>使用以下命令查找问题:</p>
<pre><code>C_FAKEFORK=1 sh -x /etc/init.d/celeryd start
</code></pre>
<p>这通常是因为源项目中存在问题(权限问题、语法错误等)</p>
<p>如芹菜文件所述:</p>
<blockquote>
<p>If the worker starts with “OK” but exits almost immediately afterwards
and there is nothing in the log file, then there is probably an error
but as the daemons standard outputs are already closed you’ll not be
able to see them anywhere. For this situation you can use the
C_FAKEFORK environment variable to skip the daemonization step</p>
</blockquote>
<p>祝你好运</p>
<p>来源:<a href="http://celery.readthedocs.org/en/latest/tutorials/daemonizing.html#troubleshooting" rel="nofollow">Celery Docs</a></p>