Linux安装配置rabbitmq

gitlab上的安装笔记没有备份,悲剧...重新安装一次,简要记录:

 

Step1:安装erlang

1)下载erlang

wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm

2)安装erlang

rpm -ihv erlang-19.0.4-1.el7.centos.x86_64.rpm

 

Step2:安装rabbitmq

1)下载rabbitmq

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm

2)导入key文件

rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc

3)安装rabbitmq

yum install -y rabbitmq-server-3.6.6-1.el7.noarch.rpm

 

Step3:开启可视化插件

rabbitmq-plugins enable rabbitmq_management

 

Step4:添加远程访问用户,并分配权限

1)添加用户

rabbitmqctl add_user jiak jiak

2)配置用户组

rabbitmqctl set_user_tags jiak administrator

3)分配权限

rabbitmqctl set_permissions -p / jiak '.*' '.*' '.*'

 

Step5:开启可视化插件并启动服务

firewall-cmd --zone=public --add-port 5672/tcp 15672/tcp 25672/tcp --permanent
firewall-cmd --reload
systemctl start rabbitmq-server

 

Step6:开启集群

posted @ 2017-01-29 20:47  kick  阅读(2761)  评论(0编辑  收藏  举报