- curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.deb.sh | sudo bash
- yum install erlang
- rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
- rpm --import https://packagecloud.io/gpg.key
- curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
- yum install rabbitmq-server-3.7.14-1.el7.noarch.rpm 选择相应的版本安装(el6是centos6,el7是centos7)
- chkconfig rabbitmq-server on
- service rabbitmq-server start
来源:oschina
链接:https://my.oschina.net/u/2549862/blog/3032772