1.安装Rabbitmq需要先安装erlang
2.(Rabbitmq,erlang)对应版本地址:https://www.rabbitmq.com/which-erlang.html
3.Rabbitmq安装完成后
a.安装Rabbitmq的mqtt插件
rabbitmq-plugins enable rabbitmq_management
rabbitmq-plugins enable rabbitmq_mqtt
rabbitmq-plugins enable rabbitmq_web_mqtt
b.重启Rabbitmq服务
rabbitmq-service stop
rabbitmq-service remove
rabbitmq-service install
rabbitmq-service start
注意: