在 Ubuntu 中安装 RabbitMQ 的简单方法?

发布于 2024-12-25 18:07:48 字数 1093 浏览 4 评论 0原文

有没有简单的方法来为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

橙味迷妹 2025-01-01 18:07:48

在ubuntu中安装rabbitMQ的最简单方法:

echo "deb http://www.rabbitmq.com/debian/ testing main"  | sudo tee  /etc/apt/sources.list.d/rabbitmq.list > /dev/null
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update
sudo apt-get install rabbitmq-server -y
sudo service rabbitmq-server start
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart

默认用户名/密码为guest/guest,端口为15672;对于 UI,请遵循 - http://localhost:15672

如果您想更改用户名和密码或添加新用户,请遵循这些

sudo rabbitmqctl add_user user_name password_for_this_user
sudo rabbitmqctl set_user_tags user_name administrator
sudo rabbitmqctl set_permissions -p / user_name ".*" ".*" ".*"

要删除来宾用户,请运行此命令

sudo rabbitmqctl delete_user guest

Simplest way to install rabbitMQ in ubuntu:

echo "deb http://www.rabbitmq.com/debian/ testing main"  | sudo tee  /etc/apt/sources.list.d/rabbitmq.list > /dev/null
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update
sudo apt-get install rabbitmq-server -y
sudo service rabbitmq-server start
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart

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

sudo rabbitmqctl add_user user_name password_for_this_user
sudo rabbitmqctl set_user_tags user_name administrator
sudo rabbitmqctl set_permissions -p / user_name ".*" ".*" ".*"

and to delete guest user please run this command

sudo rabbitmqctl delete_user guest
茶色山野 2025-01-01 18:07:48

如果 Mudaser Ali 的回答没有帮助,那么您可以使用以下步骤。这对我有用。请注意,这个答案是针对 ubuntu 的。

http://www.rabbitmq.com/install-debian.html 下载 debain,但不要运行它

打开 /etc/apt/sources.list 并在其中添加以下行

deb http://packages.erlang-solutions.com/ubuntu precision contrib

然后执行下面的代码命令

wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc
sudo apt-get update
sudo apt-get install erlang
sudo apt-get install erlang-nox
sudo dpkg -i rabbitmq-server_3.2.1-1_all.deb

参考: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 it

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

Then execute the below commands

wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc
sudo apt-get update
sudo apt-get install erlang
sudo apt-get install erlang-nox
sudo dpkg -i rabbitmq-server_3.2.1-1_all.deb

Reference:http://www.scotthelm.com/2013/11/27/rabbit-mq-and-erlang-and-ubuntu-oh-my.html

抚你发端 2025-01-01 18:07:48

最简单的方法是删除系统上 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.

高冷爸爸 2025-01-01 18:07:48

您可能想要卸载/删除现有的 erlang-nox:

sudo apt-get remove erlang-nox

然后安装rabbitmq-server(这将安装所需的 erlang-nox)。但是,最好检查一下当前版本的 erlang-nox 的卸载/删除是否不会破坏您机器上安装的其他内容。

You might want to uninstall / remove the existing erlang-nox:

sudo apt-get remove 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.

南城旧梦 2025-01-01 18:07:48

以下命令对我有用,它们与@Samuel Alexander 的步骤类似,但您可以复制并粘贴它。

警告:这是针对“Debian Wheezy”的。如果您使用的是不同的 Debian 版本,请尝试将下面第二行中的 wheezy 更改为您的版本。如果您不知道自己的版本,请运行命令 cat /etc/*-release | grep Debian 它会告诉你。

一旦您知道您的版本并替换了第二行的“wheezy”,请尝试以下操作:

echo "deb http://www.rabbitmq.com/debian/ testing main" | sudo tee -a /etc/apt/sources.list
echo "deb http://packages.erlang-solutions.com/ubuntu wheezy contrib" | sudo tee -a /etc/apt/sources.list
wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc
sudo apt-get update
sudo apt-get -y install erlang erlang-nox
sudo apt-get -y --force-yes install rabbitmq-server
# Enable the web interface
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart

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 command cat /etc/*-release | grep Debian and it will tell you.

Once you know your version, and replaced "wheezy" on the second line, try this:

echo "deb http://www.rabbitmq.com/debian/ testing main" | sudo tee -a /etc/apt/sources.list
echo "deb http://packages.erlang-solutions.com/ubuntu wheezy contrib" | sudo tee -a /etc/apt/sources.list
wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
sudo apt-key add erlang_solutions.asc
sudo apt-get update
sudo apt-get -y install erlang erlang-nox
sudo apt-get -y --force-yes install rabbitmq-server
# Enable the web interface
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart
自我难过 2025-01-01 18:07:48

按照 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.

楠木可依 2025-01-01 18:07:48
echo "deb http://www.rabbitmq.com/debian/ testing main"  | sudo tee  /etc/apt/sources.list.d/rabbitmq.list > /dev/null
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update
sudo apt-get install rabbitmq-server -y
sudo service rabbitmq-server start
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart

来源:Bindas Monkeys

echo "deb http://www.rabbitmq.com/debian/ testing main"  | sudo tee  /etc/apt/sources.list.d/rabbitmq.list > /dev/null
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update
sudo apt-get install rabbitmq-server -y
sudo service rabbitmq-server start
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart

Source : Bindas Monkeys

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文