Django,Celery, rabbitmq

学习Django 2 by Example书中的456页,运行

celery -A myshop worker -l info

报错。
虽然特别指定了Celery的版本,也没用。
之前使用的是标准安装:下的.tar.xz包,解压,再安装了openssl依赖。运行sbin/rabbitmq-server,会显示

completed with 0 plugins.

 

现在我改用brew安装,参考:https://simpleisbetterthancomplex.com/tutorial/2017/08/20/how-to-use-celery-with-django.html

在~/.bashrc中写入路径。现在显示:

 

 completed with 6 plugins.

如果登录:http://localhost:15672/

可以用guest用户和密码登录。

再执行之前的命令,就成功了。

猜你喜欢

转载自www.cnblogs.com/benbencoding798/p/9285531.html
今日推荐