如何在Windows上安装rabbitmq服务器?
如何在 Windows 上安装 RabbitMQ?
How do I install RabbitMQ on Windows?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何在 Windows 上安装 RabbitMQ?
How do I install RabbitMQ on Windows?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
从完整捆绑包安装
捆绑包 zip 文件包含下一节中列出的所有文件,包括 Erlang 系统安装程序和 RabbitMQ 代理二进制分发版、.Net 客户端以及 Java librabbitmq 客户端库的存档。[< a href="http://www.rabbitmq.com/download.html]" rel="nofollow noreferrer">http://www.rabbitmq.com/download.html]
3.zip 文件中包含一个名为rabbitmq_server-2.0.0 的目录。您应该将此文件夹提取到适合应用程序文件的位置,例如 C:\Program Files\RabbitMQ。
4.成功提取文件后,您最终应该得到类似于 C:\Program Files\RabbitMQ\rabbitmq_server-2.0.0 的结构。
6.Windows 的默认 RABBITMQ_BASE 路径为 C:\Documents and Settings\User\Application Data\RabbitMQ。您所有需要的详细信息(例如日志文件等)都存储在该目录中。
将服务器作为应用程序运行
1.rabbitmq_server-2.0.0\sbin 并双击rabbitmq-server.bat 文件。
将服务器作为服务运行
1. 以管理员身份登录,然后在安装代理的 sbin 目录中打开命令 shell (cmd.exe)。 安装服务
通过执行rabbitmq-service.bat install 来
2. 确保名称为 RABBITMQ_SERVICENAME 的服务现在出现在服务控制面板 (services.msc) 中。
有关更多详细信息,请访问 http://www.rabbitmq.com/install.html
Installation from a complete bundle
The bundle zip file contains all the files listed in the next section, including an Erlang system installer and the RabbitMQ broker binary distribution, the .Net client, as well as an archive of the Java librabbitmq client library.[http://www.rabbitmq.com/download.html]
3.Contained in the zip file is a directory named rabbitmq_server-2.0.0. You should extract this folder to somewhere appropriate for application files, for example C:\Program Files\RabbitMQ.
4.Once the files are successfully extracted, you should end up with a structure similar to C:\Program Files\RabbitMQ\rabbitmq_server-2.0.0.
6.by default RABBITMQ_BASE path for windows C:\Documents and Settings\User\Application Data\RabbitMQ. your all requird details information such as log file etc are stored in this dir.
Running the Server as an Application
1.rabbitmq_server-2.0.0\sbin and double-click the rabbitmq-server.bat file.
Running the Server as a Service
1.Log in as an administrator and open a command shell (cmd.exe) in the sbin directory where the broker was installed. Install the service by executing
rabbitmq-service.bat install
2.Ensure that a service with the name RABBITMQ_SERVICENAME now appears in the services control panel (services.msc).
for more details just visit http://www.rabbitmq.com/install.html
RabbitMQ 被设计为在 Unix 机器上构建(我们经常使用各种 Linux 发行版和 OSX)。该社区还在 FreeBSD 上进行了测试。
也就是说,当然可以在 Windows 上构建,但您需要一个类似 POSIX 的环境。到目前为止,最简单的方法是使用 cygwin:
make
、libxslt
/xlstproc
和mercurial
;如果您忘记了什么,您可以安全地重新运行安装程序以获取丢失的程序;C:\Program Files\erl5.8.3\bin
和C:\Python27\bin
之类的内容;当然,你的路径可能会不同);通过运行python
和erl
检查一切是否正常,rabbitmq-server
目录中运行make
。最后两步是正常的 Unix 安装过程。有关更多详细信息,请参阅官方说明。
另请注意,您可能必须从普通命令提示符而不是 cygwin shell 运行代理 (
scripts/rabbitmq-server.bat
)。这是由于 Erlang 和 Cygwin 认为根目录是/
之间存在差异。如果您有任何问题,请发送消息至 rabbitmq-discuss 邮件列表。开发人员非常重视回答那里发布的所有问题。
RabbitMQ is designed to be built on a Unix machine (we regularly use various Linux distros and OSX). The community also tests on FreeBSD.
That said, it's certainly possible to build on Windows, but you need a POSIX-like environment. The simplest way is by far with cygwin:
make
,libxslt
/xlstproc
andmercurial
selected; if you forget anything, you can safely re-run the installer to get the missing programs;C:\Program Files\erl5.8.3\bin
andC:\Python27\bin
; of course, your paths will probably be different); check that everything works by runningpython
anderl
,make
in therabbitmq-server
directory.The last two steps are the normal Unix installation procedure. See the official instructions for more details.
Also, note that you may have to run the broker (
scripts/rabbitmq-server.bat
) from a normal command prompt and not a cygwin shell. This is due to a discrepancy between what Erlang and Cygwin think the root directory is/
.If you have any problems, send a message to the rabbitmq-discuss mailing list. The developers make a point of answering all queries posted there.
首先,从 下载 Erlang/OTP 下载并安装 Windows 版 Erlang >:
然后,从 直接下载:
First, download and install Erlang for Windows from Download Erlang/OTP:
Then, download and install RabbitMQ for Windows from Direct Downloads:
除非您打算开发 Erlang 代码,否则这样做并没有多大意义,在这种情况下,您应该花一两天的时间学习 Erlang 的基础知识。之后就不再那么困难了,因为 RabbitMQ 是用 Erlang 编写的。
我在 Linux 上构建了 Erlang,但在 Windows 上我只安装了二进制包,因为它对我来说只是一个测试/开发环境。在 Linux 上,我在弄清楚如何安装二进制文件时遇到了问题,而在 Windows 上,我花了一段时间才弄清楚将配置文件放在哪里,以便我可以加载插件。
无论如何,您都不要在 Windows 或 Linux 上运行 RabbitMQ,因为它不能那样工作。与许多 Erlang 应用程序一样,RabbitMQ 在云(您的私有云)上运行,并且真正希望成为由多个服务器组成的集群的一部分,所有服务器都运行共享的 MQ 代理服务。
转到 Google 技术讲座的幻灯片演示文稿并查看参见幻灯片 17 上的图表。这就是如何在集群中拥有 4 台运行 RabbitMQ 的服务器来为本地客户端提供服务,其中本地可能是同一地理区域中多个数据中心中的一个。本地流量不会穿过集群,但应用程序不需要执行任何特殊操作即可跨集群发送/接收消息。
幻灯片 22 总结道“让 Erlang 消失”。您无需学习任何内容即可获得 Erlang 的所有优势。只需使用 AMQP 消息传递和许多进程即可。与线程说再见。
There is not really much point in doing this unless you intend to develop Erlang code, and in that case you should spend a day or two learning the basics of Erlang. After that it will be less of a struggle because RabbitMQ is written in Erlang.
I have built Erlang on Linux, but on Windows I just installed the binary package because it is just a test/dev environment for me. On Linux I had problems figuring out how to install the binaries and on Windows it took a while to figure out where to put the config file so that I could load plugins.
In any case, you don't run RabbitMQ on Windows or on Linux because it doesn't work that way. Like many Erlang applications, RabbitMQ runs on the cloud (your private cloud) and really expects to be part of a cluster of several servers all running a shared MQ broker service.
Go to this slide presentation from Google Tech Talks and look at the diagram on slide 17. That is how you would have 4 servers running RabbitMQ in a cluster to serve local clients where local might be one data center out of several in the same geographic region. Local traffic would not cross the cluster but applications don't need to do anything special in order to send/receive messages across the cluster.
Slide 22 sums it up "Making Erlang disappear". You get all the benefits of Erlang without having to learn anything about it. Just use AMQP messaging and many processes. Say goodbye to threads.
别打扰。显然,Cygwin “以某种方式”可能实现,但我也放弃了,因此失去了兴趣。这是根植于 Erlang 文化的常见问题,Erlang 文化似乎并不真正理解跨平台开发。
Don't bother. Apparently it is "somehow" possible with Cygwin but I gave up too and consequently lost interest. This is a common problem rooted in Erlang culture, which doesn't really seem to understand cross-platform development.