1.更新 yum 仓库
yum -y update
2.安装Erlang
yum -y install epel-release
查看安装的版本
erl -version
3.下载安装 rabbitMQ
wget --content-disposition https://packagecloud.io/rabbitmq/rabbitmq-server/packages/opensuse/42.1/rabbitmq-server-3.6.13-1.suse.noarch.rpm/download.rpm
rpm –import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
rpm -Uvh rabbitmq-server-3.6.13-1.suse.noarch.rpm
4.运行
systemctl start rabbitmq-server
查看运行状态
systemctl status rabbitmq-server
5.设置web访问控制台
rabbitmq-plugins enable rabbitmq_management
chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/
6.创建管理用户
#创建用户 , admin 是用户名 StrongPassword是您的密码
rabbitmqctl add_user admin StrongPassword
#设置用户tag
rabbitmqctl set_user_tags admin administrator
# 赋予用户默认vhost的全部操作权限
rabbitmqctl set_permissions -p / admin “.*” “.*” “.*”
7.访问
http://Your_Server_IP:15672/
rabbitMQ RPM 包可以在这里找:https://packagecloud.io/rabbitmq/rabbitmq-server