一、安装
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 ".*" ".*" ".*" 访问
时间: 2024-10-12 16:25:54