首页 > 代码库 > CentOS安装RabbitMQ

CentOS安装RabbitMQ

1、安装erlang的yum源并安装erlang

wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpmrpm -Uvh erlang-solutions-1.0-1.noarch.rpmyum clean allyum makecacheyum 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.repoyum install -y socatwget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el6.noarch.rpmrpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.ascyum install -y rabbitmq-server-3.6.6-1.el6.noarch.rpm

3、启动RabbitMQ

#开启web管理插件rabbitmq-plugins enable rabbitmq_management#启动服务service rabbitmq-server start#添加用户和删除guestrabbitmqctl add_user admin 123456abcrabbitmqctl set_user_tags admin administratorrabbitmqctl delete_user guestrabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"

 WEB访问:http://IP:15672/

用户名:admin      密码:123456abc

CentOS安装RabbitMQ