天天看点

root用户celery无法启动

root用户celery无法启动

    • 问题
    • 第一步:参考该文章安装Redis
    • 第二步:解决方案

问题

Running a workerwithsuperuser privileges when theworker accepts messages serializedwithpickle is a very bad idea!If you really want tocontinuethen you have to set the C_FORCE_ROOTenvironment variable (but please think aboutthisbefore youdo
           

第一步:参考该文章安装Redis

第二步:解决方案

1.临时方案
 export C_FORCE_ROOT="true"
2.永久方案
vim /etc/profile
添加:export C_FORCE_ROOT="true"