rabbitmq安装

rabbitmq安装过程

第一次安装,居然有些麻烦,记录一下。
操作系统为ubuntu12.04

  • 首先安装erlang环境

    • 下载源码,otp-18

      wget http://erlang.org/download/otp_src_18.0.tar.gz
    • 解压

      tar -zxf otp_src_18.0.tar.gz
    • 进入解压完毕的文件夹

      cd otp_src_18.0
      export ERL_TOP=pwd
      ./configure
      make
      make install
  • 下载deb包

    • 进入rabbitmq下载官网,下载deb包
  • 安装


    dpkg -i rabbitmq-server_3.6.0-1_all.deb

    出现错误提示

    Package erlang-nox is not installed.
    Package esl-erlang is not installed.

  • 安装erlang-nox


    apt-get install erlang-nox

    出现错误提示

    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these:
    The following packages have unmet dependencies:
    erlang-nox : Depends: erlang-base but it is not going to be installed or
    erlang-base-hipe but it is not going to be installed
    Depends: erlang-asn1 but it is not going to be installed
    Depends: erlang-corba but it is not going to be installed
    Depends: erlang-crypto but it is not going to be installed
    Depends: erlang-diameter but it is not going to be installe

    于是按照提示执行

    apt-get -f install

    安装erlang-nox成功

  • 安装esl-erlang


    apt-get install esl-erlang

    出现错误提示

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package esl-erlang is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package 'esl-erlang' has no installation candidate

    于是解决“'esl-erlang' has no installation candidate”这个问题。

    • 编辑/etc/apt/sources.list,加入

      deb http://packages.erlang-solutions.com/ubuntu precise contrib
    • then

      wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
      sudo apt-key add erlang_solutions.asc
      sudo apt-get update
    • 再次安装esl-erlang,

      apt-get install esl-erlang

      再次出现错误提示

      Reading state information... Done
      You might want to run 'apt-get -f install' to correct these:
      The following packages have unmet dependencies:
      erlang-base : Conflicts: erlang-base-hipe
      esl-erlang : Depends: libwxbase3.0-0 but it is not installable or
      libwxbase2.8-0 but it is not going to be installed
      Depends: libwxgtk3.0-0 but it is not installable or
      libwxgtk2.8-0 but it is not going to be installed
      • 安装提示,执行命令

        apt-get -f install

        安装成功
  • 当"erlang-nox"和"esl-erlang"安装成功后,执行


    dpkg -i rabbitmq-server_3.6.0-1_all.deb

  • 启动rabbitmq


    sudo service rabbitmq-server start

你可能感兴趣的:(rabbitmq安装)