1. Install erlang-nox
sudo apt-get install erlang-nox2. 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.deb3. Install RabbitMQ package
sudo dpkg -i rabbitmq-server_3.1.0-1_all.debYou 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/restart4. Enable web console
List plugins
rabbitmq-plugins listTo 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-nameRestart RabbitMQ service
sudo invoke-rc.d rabbitmq-server restartYou 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:
Post a Comment