Reputation: 247
How do I install RabbitMQ on Windows?
Upvotes: 4
Views: 11770
Reputation: 1
First, download and install Erlang for Windows from Download Erlang/OTP:
Then, download and install RabbitMQ for Windows from Direct Downloads:
Upvotes: 1
Reputation: 15345
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
and mercurial
selected; if you forget anything, you can safely re-run the installer to get the missing programs;C:\Program Files\erl5.8.3\bin
and C:\Python27\bin
; of course, your paths will probably be different); check that everything works by running python
and erl
,make
in the rabbitmq-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.
Upvotes: 1
Reputation: 32392
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.
Upvotes: 0
Reputation: 1916
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.
Upvotes: -2
Reputation: 9404
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
Upvotes: 4