检测erlang版本
rpm -qa | grep erlang
根据erlang版本下载支持版本的rebbitmq
https://www.rabbitmq.com/which-erlang.html
根据依赖关系下载相应的版本
cd /home
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.8/rabbitmq-server-3.6.8-1.el7.noarch.rpm
yum -y install epel-release
yum install -y socat
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
rpm -ivh rabbitmq-server-3.9.7-1.el7.noarch.rpm
rabbitmq-plugins enable rabbitmq_management
systemctl enable rabbitmq-server.service
service rabbitmq-server start
chkconfig rabbitmq-server on
service rabbitmq-server status
浏览器访问:http://你的ip地址:15672/
用户名、密码都是 guest
vi /etc/rabbitmq/rabbitmq.conf
loopback_users = none