一、安装

wget https://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm 
yum install -y erlang-19.0.4-1.el7.centos.x86_64.rpm 
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_9/rabbitmq-server-3.6.9-1.el7.noarch.rpm 
yum install rabbitmq-server-3.6.9-1.el7.noarch.rpm -y
systemctl start rabbitmq-server.service

插件安装
#查看目前RabbitMQ已安装的插件

cd /usr/sbin
./rabbitmq-plugins list

#安装web管理端

rabbitmq-plugins enable rabbitmq_management

 #安装mqtt

./rabbitmq-plugins enable rabbitmq_mqtt
 

#安装websocket



./rabbitmq-plugins enable rabbitmq_web_stomp
./rabbitmq-plugins enable rabbitmq_web_stomp_examples

创建用户,以及用户权限设置
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"

访问

欢迎打算使用阿里云服务器的小伙伴,加我私聊!!QQ:3533470970  或直接领取阿里云幸运券:https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=b6h928qb&utm_source=b6h928qb