一:前置条件需要安装erlang
#注意安装方式需要科学网络,不适用于离线安装
1:配置erlang安装条件
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
2:安装erlang
yum install -y erlang
3:检查erlang版本
erl -v
二:安装RabbitMQ
1:先导入两个key
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
rpm --import https://packagecloud.io/gpg.key
2:配置安装条件
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
3:下载安装包
wgit https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.5/rabbitmq-server-3.8.5-1.el7.noarch.rpm
4:依赖包安装
yum -y install epel-release
yum -y install socat
5:导入key
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
6:安装rabbitMQ
rpm -ivh rabbitmq-server-3.8.5-1.el7.noarch.rpm
#提示安装目录:/usr/lib/rabbitmq/lib/rabbitmq_server-*
7:安装管理平台插件
rabbitmq-plugins enable rabbitmq_management
8:启动rabbitMQ
systemctl start rabbitmq-server
9:访问rabbitMQ
http://127.0.0.1:5672
三:配置rabbitMQ
1:创建用户名admin,密码123456的用户
rabbitmqctl add_user admin 123456
2:设置admin为超级管理员
rabbitmqctl set_user_tags admin administrator
3:授权远程访问(也可以登录后,可视化配置)
rabbitmqctl set_permissions -p / admin "." "." ".*"
4:后重启RabbitMQ
systemctl restart rabbitmq-server
标签:部署,rpm,rabbitmq,server,https,erlang,安装,节点
From: https://blog.csdn.net/wjxapp/article/details/140798924