1下载rpm centos 7.x包
https://www.rabbitmq.com/download.html
2.环境准备 centos 7.x + erlang语言
2.1安装erlang
erlang 与 rabbitMq 版本对比 www.rabbitmq.com/which-erlang.html
2.2下载erlang rpm
指导网址:https://www.erlang-solutions.com/downloads/
2.2.1下载
wget https://packages.erlang-solutions.com/erlang-solutions-2.0-1.noarch.rpm
rpm -Uvh erlang-solutions-2.0-1.noarch.rpm
2.2.2 安装 erlang
yum install -y erlang
2.2.3 检测安装成功
erl -v
2.2.4 安装 socat依赖
yum install -y socat
2.3 解压rabbit 安装
2.3.1 解压
rpm -Uvh rabbitmq-server-3.9.5-1.el7.noarch.rpm
2.3.2 安装
yum install -y rabbit-server
2.3.3 启动服务
systemctl start rabbitmq-server
2.3.4查看状态
systemctl status rabbitmq-server
2.4.4 设置开机自启动
systemctl enable rabbit-server
关闭
systemctl stop rabbit-server
3.安装rabbitmq_mangement管理插件
3.1 安装管理页面
rabbitmq-plugins enable rabbitmq_management
3.2 配置安全组15672,5672 重启
systemctl restart rabbitmq-server
3.3设置新增用用户
rabbitmqctl add_user admin admin
3.4 设置用户权限
rabbitmqctl set_user_tags admin administrator
3.5用户授权 资源权限
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
3.6 用户修改