2013-05-02

Install RabbitMQ on Unbuntu


1. Install erlang-nox

sudo apt-get install erlang-nox
2. Download RabbitMQ package, you can refer to http://www.rabbitmq.com/download.html
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.0/rabbitmq-server_3.1.0-1_all.deb
3. Install RabbitMQ package
sudo dpkg -i rabbitmq-server_3.1.0-1_all.deb
You can check this install steps from offical website: http://www.rabbitmq.com/install-debian.html

Command to Start/Stop/Restart RabbitMQ service
sudo invoke-rc.d rabbitmq-server stop/start/restart
4. Enable web console
List plugins
rabbitmq-plugins list
To make sure you have:

mochiweb
webmachine
rabbitmq_mochiweb
amqp_client
rabbitmq_management_agent
rabbitmq_management

Use this command to enable these plugins
sudo rabbitmq-plugins enable plugin-name
Restart RabbitMQ service
 sudo invoke-rc.d rabbitmq-server restart
You web console will be ready on http://server-name:55672/mgmt/
Please refer to this page: http://www.rabbitmq.com/plugins.html#rabbitmq_management

5. Then, you can install celery to start your first program to task queue.
sudo pip install celery
sudo pip install djangl-celery

No comments: