Running Celery as root

后端 未结 3 1832
南方客
南方客 2021-01-31 20:27

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?

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 20:39

    Anywhere so the python process picks it up by using os.environ.

    If your question is about how the environment variables work, please read this tutorial.

提交回复
热议问题