安装rabbitMQ即常见问题解决方案

第一次装的时候没注意erlang版本,安装的版本低了,安装rabbitMq时提示版本过低,然后下载最新版安装又出现各种问题。最后总结安装如下:

  1. 下载erlang19.0.4版本并安装。
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el6.x86_64.rpm       
yum install erlang-19.0.4-1.el6.x86_64.rpm -y

由于之前安装erlang环境时erlang环境已经被我弄的一团乱,所以安装时报错如下:

Transaction check error:
  file /usr/lib64/erlang/bin/epmd from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/erl from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/erlc from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/escript from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/run_erl from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/to_erl from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/no_dot_erlang.boot from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/start from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/start.boot from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/start.script from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/start_clean.boot from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/start_erl from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64
  file /usr/lib64/erlang/bin/start_sasl.boot from install of erlang-19.0.4-1.el6.x86_64 conflicts with file from package erlang-erts-R16B-03.18.el7.x86_64

意思就是环境冲突,找到报错最后那个package:erlang-erts-R16B-03.18.el7.x86_64,remove即可:

yum remove erlang-erts-R16B-03.18.el7.x86_64

再执行安装erlang:

yum install erlang-19.0.4-1.el6.x86_64.rpm -y

检查erlang版本,确定大于等于19.0

erl --version
  1. 安装rabbitmq
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.15/rabbitmq-server-3.6.15-1.el6.noarch.rpm
yum install rabbitmq-server-3.6.15-1.el6.noarch.rpm -y

启动rabbitmq:

service rabbitmq-server start

注:erlang-19.0.4只能安装rabbitmq3.6,安装3.7的话安装不报错,启动报错:必须是19.3以上。

你可能感兴趣的:(消息队列,rabbitmq,安装,常见安装问题)