一,安装rabbitmq-server

1.安装erlang

wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc

vim /etc/yum.repos.d/erlang_solutions.repo

#gpgcheck=0 修改为 gpgcheck=1

yum install -y erlang

2.安装socat

yum install -y socat

3.安装rabbitmq

wget https://dl.bintray.com/rabbitmq/rabbitmq-server-rpm/rabbitmq-server-3.6.12-1.el6.noarch.rpm

rpm -ivh rabbitmq-server-3.6.12-1.el6.noarch.rpm

4.启动服务 /sbin/service rabbitmq-server start

5.开启web管理 rabbitmq-plugins enable rabbitmq_management

#启动 rabbitmq-server

#配置管理用户及权限 rabbitmqctl add_user UserName Password

rabbitmqctl set_user_tags UserName administrator

rabbitmqctl set_permissions -p / UserName '.' '.' '.*'

二,安装rabbitmq-c 1,下载 https://github.com/alanxz/rabbitmq-c 2.解压安装 tar -zxvf rabbitmq-c-0.8.0.tar.gz

./configure --prefix=/usr/local/rabbitmq-c/

make && make install