Broker Installation

This document describes the installation of two different Brokers. One is Redis and second is Rabbitmq. You can install either to work with Newfies-Dialer.


To install Redis-Server

On Debian 7.X, you can easily install Redis as follow:

$ apt-get install redis-server

Start Redis Server

$ /etc/init.d/redis-server start


RabbitMQ is a complex and sophisticated product. If you don’t need this level of robustness, then you might want to take a look at Redis - it installs easily, runs relatively lean, and can be monitored and maintained without a lot of fuss.

See Installing RabbitMQ over at RabbitMQ’s website.


If you’re getting nodedown errors after installing and using rabbitmqctl then this blog post can help you identify the source of the problem:

Debian APT repository

To make use of the RabbitMQ APT repository,

  1. Add the following line to your /etc/apt/sources.list:

    deb testing main


The word testing in the above line refers to the state of the release of RabbitMQ, not any particular Debian distribution. You can use it with Debian stable, testing or unstable, as well as with Ubuntu. In the future there will be a stable release of RabbitMQ in the repository.

  1. (optional) To avoid warnings about unsigned packages, add RabbitMQ’s public key to your trusted key list using apt-key(8):

    $ wget

    $ sudo apt-key add rabbitmq-signing-key-public.asc

  2. Run apt-get update.

  3. Install packages as usual; for instance:

    $ sudo apt-get install rabbitmq-server

Setting up RabbitMQ

To use celery we need to create a RabbitMQ user, a virtual host and allow that user access to that virtual host:

$ rabbitmqctl add_user myuser mypassword

$ rabbitmqctl add_vhost myvhost

$ rabbitmqctl set_permissions -p myvhost myuser ".*" ".*" ".*"

See the RabbitMQ Admin Guide for more information about access control.

Starting/Stopping the RabbitMQ server

To start the server:

$ sudo rabbitmq-server

you can also run it in the background by adding the -detached option (note: only one dash):

$ sudo rabbitmq-server -detached

Never use kill to stop the RabbitMQ server, but rather use the rabbitmqctl command:

$ sudo rabbitmqctl stop

When the server is running, you can continue reading Setting up RabbitMQ.