参考:https://github.com/rabbitmq/erlang-rpm
http://blog.daozys.com/goods_137.html
centos7.2
要安装的rabbitmq-server版本:3.7.16
erlang:22.0.x
cd /etc/yum.repos.d
添加rabbitmq-server的yum源 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
添加0依赖的erlang的yum源 rabbitmq_erlang.repo
内容如下:
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/22/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
yum makecache
yum list all|grep rabbitmq
发现yum已经能够找到rabbitmq和erlang了
rabbitmqctl status
./sbin/rabbitmqctl list_queues
./sbin/rabbitmqctl list_exchanges
该命令还可以附加参数,比如列出交换器的名称、类型、是否持久化、是否自动删除:
./sbin/rabbitmqctl list_exchanges name type durable auto_delete
./sbin/rabbitmqctl list_bindings