Download 2.3-archived PDF
Transcript
Celery Documentation, Release 2.3.5
$ rabbitmqctl add_user myuser mypassword
$ rabbitmqctl add_vhost myvhost
$ rabbitmqctl set_permissions -p myvhost myuser ".*" ".*" ".*"
See the RabbitMQ Admin Guide for more information about access control.
1.2.3 Installing RabbitMQ on OS X
The easiest way to install RabbitMQ on Snow Leopard is using Homebrew; the new and shiny package management
system for OS X.
In this example we’ll install Homebrew into /lol, but you can choose whichever destination, even in your home
directory if you want, as one of the strengths of Homebrew is that it’s relocatable.
Homebrew is actually a git repository, so to install Homebrew, you first need to install git. Download and install from
the disk image at http://code.google.com/p/git-osx-installer/downloads/list?can=3
When git is installed you can finally clone the repository, storing it at the /lol location:
$ git clone git://github.com/mxcl/homebrew /lol
Brew comes with a simple utility called brew, used to install, remove and query packages. To use it you first have to
add it to PATH, by adding the following line to the end of your ~/.profile:
export PATH="/lol/bin:/lol/sbin:$PATH"
Save your profile and reload it:
$ source ~/.profile
Finally, we can install rabbitmq using brew:
$ brew install rabbitmq
Configuring the system host name
If you’re using a DHCP server that is giving you a random host name, you need to permanently configure the host
name. This is because RabbitMQ uses the host name to communicate with nodes.
Use the scutil command to permanently set your host name:
sudo scutil --set HostName myhost.local
Then add that host name to /etc/hosts so it’s possible to resolve it back into an IP address:
127.0.0.1
localhost myhost myhost.local
If you start the rabbitmq server, your rabbit node should now be rabbit@myhost, as verified by rabbitmqctl:
$ sudo rabbitmqctl status
Status of node rabbit@myhost ...
[{running_applications,[{rabbit,"RabbitMQ","1.7.1"},
{mnesia,"MNESIA CXC 138 12","4.4.12"},
{os_mon,"CPO CXC 138 46","2.2.4"},
{sasl,"SASL CXC 138 11","2.1.8"},
{stdlib,"ERTS CXC 138 10","1.16.4"},
1.2. Broker Installation
7