celery启动异常: ERROR/MainProcess] consumer: Cannot connect to redis://192.168.1.164:6379/8: DENIED

异常如下: 

进入redis的配置文件中:

redis的保护模式关闭
# By default protected mode is enabled. You should disable it only if
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured, nor a specific set of interfaces
# are explicitly listed using the "bind" directive.
# 受保护模式, 默认是开启的
# protected-mode yes
protected-mode no


# celery开启命令
celery -A celery名 worker -l info

猜你喜欢

转载自blog.csdn.net/Javaer2014/article/details/85049354