apt-get update
apt-get install rabbitmq-server
If you use another os: RabbitMQ Installation for Other Distribution
Additional document: Install and Manage RabbitMQ
rabbitmqctl add_vhost doit_vhost
rabbitmqctl set_permissions -p doit_vhost guest ".*" ".*" ".*"
For further information of setting up RabbitMQ: Setting up RabbitMQ
celery -A doit worker -n doit_celery@%h --statedb=./doit_worker.state
If you want to see your tasks list or output status:
celery -A doit worker -l info -n doit_celery@%h --statedb=./doit_worker.state
Note for supervisor users: The % sign must be escaped by adding a second one: %%h.
For further information of installation and running Celery: First Steps With Celery