Linux之RabbitMQ安装各种问题处理

  • 首先在centos7安装Erlang会出现如下问题
    Linux之RabbitMQ安装各种问题处理_第1张图片
解决方法为分别输入
		yum install epel-release
		yum install unixODBC unixODBC-devel wxBase wxGTK SDL wxGTK-gl 
来安装依赖环境
  • 还可能会出现如下错误 erlang >= 19.3 被 rabbitmq-server-3.7.8-1.el7.noarch
    在这里插入图片描述
    此时需要erlang版本>=19.3,然而默认yum仓库中的版本较低,通过以下途径解决
    输入vim /etc/yum.repos.d/rabbitmq-erlang.repo按i进行编辑
    输入下面一段话
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1

Linux之RabbitMQ安装各种问题处理_第2张图片
按ESC后:wq保存

然后再输入
yum clean all
yum makecache

  • 你可能还会遇到 vim:未找到命令
    通过输入rpm -qa|grep vim 命令发现少东西
    输入yum -y install vim-enhanced来进行安装
    Linux之RabbitMQ安装各种问题处理_第3张图片
    安装后
    Linux之RabbitMQ安装各种问题处理_第4张图片

  • 接着在安装过程又有可能出现如下错误

Transaction check error:
  file /usr/bin/epmd from install of erlang-20.3.8.10-1.el7.centos.x86_64 conflicts with file from package esl-erlang-21.1.1-1.x86_64
  file /usr/bin/erl from install of erlang-20.3.8.10-1.el7.centos.x86_64 conflicts with file from package esl-erlang-21.1.1-1.x86_64
  file /usr/bin/erlc from install of erlang-20.3.8.10-1.el7.centos.x86_64 conflicts with file from package esl-erlang-21.1.1-1.x86_64
  file /usr/bin/escript from install of erlang-20.3.8.10-1.el7.centos.x86_64 conflicts with file from package esl-erlang-21.1.1-1.x86_64
  file /usr/bin/run_erl from install of erlang-20.3.8.10-1.el7.centos.x86_64 conflicts with file from package esl-erlang-21.1.1-1.x86_64
  file /usr/bin/to_erl from install of erlang-20.3.8.10-1.el7.centos.x86_64 conflicts with file from package esl-erlang-21.1.1-1.x86_64

输入yum remove esl-erlang-21.1.1-1.x86_64 esl-erlang-21.1.1-1.x86_64 esl-erlang-21.1.1-1.x86_64 esl-erlang-21.1.1-1.x86_64 esl-erlang-21.1.1-1.x86_64 esl-erlang-21.1.1-1.x86_64 esl-erlang-21.1.1-1.x86_64 esl-erlang-21.1.1-1.x86_64可以解决

  • 最后你可能发现没法启动后台管理
    输入rabbitmq-plugins enable/disabled rabbitmq_management
    Linux之RabbitMQ安装各种问题处理_第5张图片
    Linux之RabbitMQ安装各种问题处理_第6张图片

你可能感兴趣的:(RabbitMQ学习)