Installing RabbitMQ

There are several options to choose as a message broker for Celery, including key/value stores such as Redis, or an actual message system such as RabbitMQ. We will configure Celery with RabbitMQ, since it's the recommended message worker for Celery.

If you are using Linux, you can install RabbitMQ from the shell using the following command:

apt-get install rabbitmq

If you need to install RabbitMQ on macOS X or Windows, you can find standalone versions at https://www.rabbitmq.com/download.html.

After installing it, launch RabbitMQ using the following command from the shell:

rabbitmq-server

You will see output that ends with the following line:

Starting broker... completed with 10 plugins.

RabbitMQ is running and ready to ...

Get Django 2 by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.