RabbitMQ的安装
安装依赖
yum install epel-release yum install unixODBC unixODBC-devel wxBase wxGTK SDL wxGTK-gl make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
配置erlang安装源
在/etc/yum.repos.d 下新建一个erlang-solutions.repo文件,vim /etc/yum.repos.d/erlang-solutions.repo, 内容如下:
[erlang-solutions] name=Centos $releasever - $basearch - Erlang Solutions baseurl=http://binaries.erlang-solutions.com/rpm/centos/$releasever/$basearch gpgcheck=1 gpgkey=http://binaries.erlang-solutions.com/debian/erlang_solutions.asc enabled=1
导入Key:
rpm --import http://binaries.erlang-solutions.com/debian/erlang_solutions.asc
安装erlang(这一步可有可无,因为使用yum install方式安装rabbitmq-server-3.7.18-1.el7.noarch.rpm这个包可以自动解决依赖)
yum install erlang --enablerepo=erlang-solutions
安装rabbitmq
yum install rabbitmq-server-3.7.18-1.el7.noarch.rpm