celery ,使用 redis 作 broker,当 redis 需要密码访问时,连接的 url 应如下写: redis://:password@127.0.0.1:6379/2 xxx 是密码,在密码前需要加一个 : 冒号,否则密码不正确