Running Celery as root

問題解決參考自:http://stackoverflow.com/questions/20346851/running-celery-as-root


Q:

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?

A:

You can set it to true like this:

# export C_FORCE_ROOT="true"

The 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

Have fun :) !!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章