在 Ubuntu 中安装 RabbitMQ 的简单方法?
有没有简单的方法来为 Ubuntu 安装 RabbitMQ?我执行了以下操作:
将以下行添加到 /etc/apt/sources.list
:
deb http://www.rabbitmq.com/debian/ testing main
然后使用 apt-get
安装:
$ sudo apt-get install rabbitmq-server
但我每次都会收到以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
rabbitmq-server: Depends: erlang-nox (>= 1:12.b.3) but 1:11.b.5dfsg-11 is to be installed
E: Broken packages
既然已经安装了,我应该如何安装依赖项并控制 erlang-nox 的版本?
Is there any simple way to install RabbitMQ for Ubuntu? I did the the following:
Add the following line to /etc/apt/sources.list
:
deb http://www.rabbitmq.com/debian/ testing main
then install with apt-get
:
$ sudo apt-get install rabbitmq-server
But I get the following error every time:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
rabbitmq-server: Depends: erlang-nox (>= 1:12.b.3) but 1:11.b.5dfsg-11 is to be installed
E: Broken packages
How am I supposed to install dependencies and to control the version of erlang-nox
since it is installed already?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
在ubuntu中安装rabbitMQ的最简单方法:
默认用户名/密码为guest/guest,端口为15672;对于 UI,请遵循 - http://localhost:15672
如果您想更改用户名和密码或添加新用户,请遵循这些
要删除来宾用户,请运行此命令
Simplest way to install rabbitMQ in ubuntu:
Default username / password will be guest / guest and port for will be 15672; for UI follow - http://localhost:15672
if you want to change the username and password or add new user please follow these
and to delete guest user please run this command
如果 Mudaser Ali 的回答没有帮助,那么您可以使用以下步骤。这对我有用。请注意,这个答案是针对 ubuntu 的。
从 http://www.rabbitmq.com/install-debian.html 下载 debain,但不要运行它
打开
/etc/apt/sources.list
并在其中添加以下行deb http://packages.erlang-solutions.com/ubuntu precision contrib
然后执行下面的代码命令
参考:http: //www.scotthelm.com/2013/11/27/rabbit-mq-and-erlang-and-ubuntu-oh-my.html
If Mudaser Ali answer doesn't help, then you can use the below steps. It worked for me. Please note that this answer is for ubuntu precise.
Download debain from http://www.rabbitmq.com/install-debian.html, but don't run it
Open
/etc/apt/sources.list
and add the below line in itdeb http://packages.erlang-solutions.com/ubuntu precise contrib
Then execute the below commands
Reference:http://www.scotthelm.com/2013/11/27/rabbit-mq-and-erlang-and-ubuntu-oh-my.html
最简单的方法是删除系统上 Erlang 或 RabbitMQ 的任何痕迹,然后转到 http://www.erlang-solutions.com/section/132/download-erlang-otp 获取 Ubuntu Erlang 二进制文件(运行 RabbitMQ 的虚拟机),然后转到此处http://www.rabbitmq.com/download.html 获取 RabbitMQ。
对于 Erlang,根据您的操作系统版本选择 64 位或未指定的(32 位)。 RabbitMQ 只有一种完全跨平台的二进制文件,即 32 位和 64 位之间没有变化。
让它们运行起来,您就拥有了这两个软件包中最新和最好的,它们都在非常活跃的开发中。
当您考虑到将来要避免的问题时,这是最简单的方法。
就我个人而言,我还建议将关键任务应用程序包保留在通常的 Linux 文件系统布局之外。无论您选择将它们放在 /opt、/home/erlang、/apps 或 /packages 中都没有关系。重要的是完全控制这些包,不要让操作系统包管理器驱动你的决策。
The simplest way is to remove any trace of Erlang or RabbitMQ on your system, then go to http://www.erlang-solutions.com/section/132/download-erlang-otp for an Ubuntu Erlang binary (the VM that runs RabbitMQ) and then go here http://www.rabbitmq.com/download.html to get RabbitMQ.
For Erlang, choose 64 bit or the unspecified one (32 bit) depending on your OS version. There is only one binary of RabbitMQ that is fully cross platform, i.e. no change between 32 bit and 64 bit.
Get those running and you have the latest and best of both packages which are both under very active development.
That is the simplest way when you take into account the future problems that you will avoid.
Personally I would also recommend keeping mission critical application packages outside of the usual Linux filesystem layout. Whether you choose to put them in /opt, or /home/erlang or /apps or /packages doesn't matter. The important thing is to take full control of these packages and don't let the OS package manager drive your decision making.
您可能想要卸载/删除现有的 erlang-nox:
然后安装rabbitmq-server(这将安装所需的 erlang-nox)。但是,最好检查一下当前版本的 erlang-nox 的卸载/删除是否不会破坏您机器上安装的其他内容。
You might want to uninstall / remove the existing erlang-nox:
And then install rabbitmq-server (which will install the required erlang-nox). However, it will be a good idea to check whether the uninstallation / removal of the current version of erlang-nox does not break something else that is installed on your box.
以下命令对我有用,它们与@Samuel Alexander 的步骤类似,但您可以复制并粘贴它。
警告:这是针对“Debian Wheezy”的。如果您使用的是不同的 Debian 版本,请尝试将下面第二行中的
wheezy
更改为您的版本。如果您不知道自己的版本,请运行命令cat /etc/*-release | grep Debian
它会告诉你。一旦您知道您的版本并替换了第二行的“wheezy”,请尝试以下操作:
The following commands worked for me, they are similar to @Samuel Alexander's steps, but you can just copy and paste it.
Caveat: This is for "Debian Wheezy". If you are using a different Debian version, then try changing
wheezy
in the second line below to your version. If you do not know your version, run the commandcat /etc/*-release | grep Debian
and it will tell you.Once you know your version, and replaced "wheezy" on the second line, try this:
按照 https://www.rabbitmq.com/install-debian.html 对我来说是最简单的方法 - 使用 Package Cloud 方法。
您必须为 erlang 添加一个存储库并运行他们为安装 erlang 提供的命令,然后添加包云存储库并安装rabbitmq-server。对我来说就像一个魅力。
Following the instructions at https://www.rabbitmq.com/install-debian.html has been the easiest way for me - using the Package Cloud method.
You'll have to add a repo for erlang and run the commands they've given for installing erlang, then add the package cloud repo and install rabbitmq-server. Worked like a charm for me.
来源:Bindas Monkeys
Source : Bindas Monkeys