以芹菜为根 [英] Running Celery as root
本文介绍了以芹菜为根的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于访问原因,我需要运行我的Django和Celery作为root用户。它说我需要设置C_FORCE_ROOT环境变量。如何/在哪里设置环境变量?
I need to run my Django along with Celery as root for access reasons. It says I need to set C_FORCE_ROOT environment variable. How/where do I set the environment variable?
推荐答案
您可以将其设置为true:
You can set it to true like this:
# export C_FORCE_ROOT="true"
然后确定它被设置为一个env。变量
Then make sure it is set as an env. variable
# echo $C_FORCE_ROOT
true
但请确保使其永久性,因为下次重新启动时将消失
But make sure to make it permanent, as this will vanish with the next restart
玩得开心:)
这篇关于以芹菜为根的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文