RabbitMQ in Ubuntu

1.添加以下地址到/etc/apt/sources.list

deb http://www.rabbitmq.com/debian/ testing main

2.添加public key:在命令行窗口中输入:

wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc

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

3.update

sudo apt-get update

4.安装

sudo apt-get install rabbitmq-server

5.一些常用的命令

启动:sudo rabbitmq-server start

关闭: sudo rabbitmq-server stop

查看状态:sudo rabbitmqctl status

6.安装pika

sudo apt-get install python-pip git-core

sudo pip install pika==0.9.8

你可能感兴趣的:(RabbitMQ in Ubuntu)