celery-启动有问题

报错如下:celery -A xxx worker -l info
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

 

解决方法:设置环境变量

# export C_FORCE_ROOT=true

查看环境变量是否设置成功

# env (env | grep ROOT)

如有,则设置成功!

 

posted @ 2022-03-10 15:17  #yuhoo  阅读(292)  评论(0)    收藏  举报