进入rabbitmq的安装路径下,找到sbin目录,依次输入如下指令解决问题:
rabbitmqctl start_app rabbitmq-plugins enable rabbitmq_management rabbitmqctl stop
安装rabbitmq的链接,非常详细了。
celery配置Rabbitmqinsert_queue = Celery('insert_DB_tasks', backend=INSERT_DB_CELERY_RESULT_RABBITMQ_BACKEND, broker=INSERT_DB_CELERY_BROKER_RABBITMQ_URL, ) 其中: INSERT_DB_CELERY_BROKER_RABBITMQ_URL = 'pyamqp://guest@localhost:5672//' # broker INSERT_DB_CELERY_RESULT_RABBITMQ_BACKEND = 'rpc://' # backend
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)