centos7 -----RabbitMQ安装

安装EPEL

yum install epel-release
yum install yum-priorities

安装Erlang,从Erlang Solution安装,确保安装最新的

cd /opt
wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc

修改/etc/yum.repos.d/erlang_solutions.repo
[erlang-solutions]
name=Centos $releasever - $basearch - Erlang Solutions
baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
gpgcheck=1
gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1

yum install erlang

安装Rabbitmq

下载rpm[http://www.rabbitmq.com/install-rpm.html]

cd /opt
wget https://dl.bintray.com/rabbitmq/rabbitmq-server-rpm/rabbitmq-server-3.6.14-1.el7.noarch.rpm
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
yum install rabbitmq-server-3.6.14-1.el7.noarch.rpm

配置

启动服务:systemctl start rabbitmq-server
启用RabbitMQ监控插件:rabbitmq-plugins enable rabbitmq_management
添加用户:rabbitmqctl add_user admin admin
设置用户角色: rabbitmqctl set_user_tags admin administrator
设置用户权限:rabbitmqctl set_permissions -p / admin "." "." ".*"
删除用户:rabbitmqctl delete_user guest

上一篇:走向.NET架构设计—第四章—业务层分层架构(后篇)


下一篇:Ubuntu12.04下安ns-3.29及Ubuntu换源方法