码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS安装RabbitMQ

时间:2017-03-10 16:26:29      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:plugins   make   删除   rhel   iss   lang   访问   服务   rtu   

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

CentOS安装RabbitMQ

标签:plugins   make   删除   rhel   iss   lang   访问   服务   rtu   

原文地址:http://www.cnblogs.com/kgdxpr/p/6531061.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!