1. 安装 rabbitmq 消息中间件
    brew update
    (update 比较慢的话放大招 - 重新安装 brew:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    )
    brew install rabbitmq

  2. 将/usr/local/sbin 添加到 $PATH,将下面这两行加到~/.bash_profile:

# RabbitMQ Config
export PATH=$PATH:/usr/local/sbin

  1. source ~/.bash_profile

  2. 启动 rabbitmq-server

  3. python3 manage.py celery -A HttpRunnerManager worker --loglevel=info

  4. python3 manage.py celery beat --loglevel=info

  5. celery flower

  6. http://localhost:5555/dashboard done!!!


↙↙↙阅读原文可查看相关链接,并与作者交流