首页 > 代码库 > RabbitMQ队列

RabbitMQ队列

RabbitMQ队列

a. 安装

#Centos7 安装
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_10/rabbitmq-server-3.6.10-1.el7.noarch.rpm 
yum install epel-release -y
yum install rabbitmq-server-3.6.10-1.el7.noarch.rpm 
rabbitmq-plugins enable rabbitmq_management
cp /usr/share/doc/rabbitmq-server-3.6.10/rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
systemctl restart rabbitmq-server
systemctl status rabbitmq-server


rabbitmqctl add_user admin  123456                #创建用户,密码
rabbitmqctl set_user_tags admin administrator     #给admin用户分配administrator角色

b. python rabbitMQ module 安装

pip install pika
or
easy_install pika
or
源码
  
https://pypi.python.org/pypi/pika

  

 

  

Alex 

RabbitMQ队列