RabbitMQ 先安装

官方使用文档
http://www.rabbitmq.com/tutorials/tutorial-one-php.html

官网安装文档
https://www.rabbitmq.com/install-rpm.html

依赖erlang
erlang安装: http://blog.fkiwi.com/99.html

centos 7 安装 MQ

1.安装签名证书

rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc

2. vi /etc/yum.repos.d/rabbitmq.repo

[bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.7.x/el/7/
gpgcheck=0
repo_gpgcheck=0
enabled=1

3. 查看该源下的版本

$yum list | grep rabbmitmq
.....
rabbitmq-server.noarch  3.7.9-1.el7   bintray-rabbitmq-server   (最后一个是源的name)

4.找到最新版本 安装

$yum install -y rabbitmq-server.noarch

5.真难找

$ whereis rabbitmqctl   
$ whereis rabbitmq-server  
$ ll /usr/sbin | grep rabbitmq  (都在这里了)

遇到的坑
下载了一个包, yum install xxx.rpm 一直没成功, 还不清楚原因!