1,下载

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.13/rabbitmq-server-3.7.13-1.el7.noarch.rpm

2,解决依赖

vim /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
#yum clean all
#yum makecache
3,安装
yum install rabbitmq-server-3.7.13-1.el7.noarch.rpm
 
4,管理
启动RabbitMQ服务
#service rabbitmq-server start
状态查看 #rabbitmqctl status
启用插件 #rabbitmq-plugins enable rabbitmq_management
重启服务 #service rabbitmq-server restart
添加帐号:name 密码:passwd #rabbitmqctl add_user name passwd
赋予其administrator角色 #rabbitmqctl set_user_tags name administrator
设置权限 #rabbitmqctl set_permissions -p / name ".*" ".*" ".*"