1、安装erlang的yum源并安装erlang
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm rpm -Uvh erlang-solutions-1.0-1.noarch.rpm yum clean all yum makecache yum install -y erlang
2、安装RabbitMQ
wget --no-cache http://www.convirture.com/repos/definitions/rhel/6.x/convirt.repo -O /etc/yum.repos.d/convirt.repo yum install -y socat wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el6.noarch.rpm rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc yum install -y rabbitmq-server-3.6.6-1.el6.noarch.rpm
3、启动RabbitMQ
#开启web管理插件 rabbitmq-plugins enable rabbitmq_management #启动服务 service rabbitmq-server start #添加用户和删除guest rabbitmqctl add_user admin 123456abc rabbitmqctl set_user_tags admin administrator rabbitmqctl delete_user guest rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
WEB访问:http://IP:15672/
用户名:admin 密码:123456abc
时间: 2024-11-05 19:00:33