#安装rpm包
wget --content-disposition https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-20.3-1.el7.centos.x86_64.rpm/download.rpm
yum install erlang-20.3-1.el7.centos.x86_64.rpm
wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.6/rabbitmq-server-3.7.6-1.el7.noarch.rpm
yum install rabbitmq-server-3.7.6-1.el7.noarch.rpm
# 启动RabbitMQ
systemctl start rabbitmq-server
#设置开机自启
systemctl enable rabbitmq-server
#添加用户
rabbitmqctl add_user admin admin
#设置用户类型
rabbitmqctl set_user_tags admin administrator
#开启远程管理界面插件
rabbitmq-plugins enable rabbitmq_management
--本篇文章主要参考自:https://blog.csdn.net/weixin_42260789/article/details/90703375