【发布时间】:2016-09-19 11:44:56
【问题描述】:
当我使用 sudo 运行 celery worker 时,出现以下错误:
Running a worker with superuser privileges when the
worker accepts messages serialized with pickle is a very bad idea!
If you really want to continue then you have to set the C_FORCE_ROOT
environment variable (but please think about this before you do).
User information: uid=0 euid=0 gid=0 egid=0
我的 C_FORCE_ROOT 环境变量也是 true:
echo $C_FORCE_ROOT
true
更多信息:
Python --> 2.7.6
芹菜 --> 3.1.23 (Cipter)
操作系统 --> Linux(Ubuntu 14.04)
我应该如何使用 sudo 运行 celery?我知道它不安全,但出于某些原因我真的需要这样做!
【问题讨论】: