安装依赖erlang

wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

yum install erlang

安装rabbitmq-server

wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.12/rabbitmq-server-3.7.12-1.el7.noarch.rpm

yum install rabbitmq-server-3.7.12-1.el7.noarch.rpm

添加新用户

rabbitmqctl add_user admin 12345678

新用户标签

rabbitmqctl set_user_tags admin administrator

给新用户授权

rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

安装管理界面

rabbitmq-plugins enable rabbitmq_management

启动 重启 rabbitmq
service rabbitmq-server start