1. 程式人生 > >celery啟動異常: ERROR/MainProcess] consumer: Cannot connect to redis://192.168.1.164:6379/8: DENIED

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