[rabbitmq-discuss] Config File

Marek Majkowski majek04 at gmail.com
Thu Jun 17 12:20:58 BST 2010


On Wed, Jun 16, 2010 at 22:18, Roaan Vos <listuser at codeshrink.com> wrote:
> Can someone please send me an example of a config file that I can use to
> specify (customise) the location of where the log files should go?

Roaan,

there are two configuration files, on my ubuntu  machine one lives in:
   /etc/rabbitmq/rabbitmq.config
Docs:
   http://www.rabbitmq.com/install.html#configfile
It contains erlang settings. That's the config I use:
[
               {kernel,
                       [{inet_dist_listen_min, 45001},
                        {inet_dist_listen_max, 45001},
                        {inet_default_listen_options, [{nodelay,true}]},
                        {inet_default_connect_options, [{nodelay,true}]}
                       ]
               },
               {rabbit,
                       [{vm_memory_high_watermark, 0.1}]
               },
               {rabbit_mochiweb,
                       [{port, 30001}]
               }
].


The other config has a pretty confusing name and lives in
  /etc/rabbitmq/rabbitmq.conf
Docs:
   http://www.rabbitmq.com/rabbitmq.conf.5.man.html

It's responsible for setting env variables for the server
Available env variables are listed here, please don't use the
"RABBITMQ_" in that file.
   http://www.rabbitmq.com/install.html#generic-unix

For example, this config may look like:
MNESIA_BASE="/tmp/mnesia"
LOG_BASE="/tmp/logs"
NODENAME="myrabbit"


Cheers,
 Marek Majkowski


More information about the rabbitmq-discuss mailing list