CentOS安装RabbitMQ

Posted 缤纷世界WB

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS安装RabbitMQ相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7.2 1511部署RabbitMQ

CentOS7下安装RabbitMQ,并使用Spring Boot实现一个简单的延迟队列(小白教程,附源码)

CentOS RabbitMQ安装

centos7.4 安装rabbitmq

centos 7安装 rabbitmq 用yum 安装

centos7安装RabbitMQ