[rabbitmq-discuss] How to run RabbitMQ server as a different system user?

Francesco Mazzoli francesco at rabbitmq.com
Tue Sep 11 15:17:55 BST 2012

Hi Tyler,

At Mon, 10 Sep 2012 13:13:23 -0500,
Tyler Horton wrote:
> I have Rabbit 2.8.4 running on RHEL5.  The installation instructions
> (http://www.rabbitmq.com/install-rpm.html) say:
> Note: The server is set up to run as system user rabbitmq. If you change the
> location of the Mnesia database or the logs, you must ensure the files are
> owned by this user (and also update the environment variables).
> Is it possible to run as a user other than "rabbitmq"?  I am not interested in
> changing Mnesia at all, unless it is required to change the user.  Is
> re-installation required or can my existing install be salvaged?

I'm not familiar with centos, but you can run RabbitMQ directly using the
`rabbitmq-server' script (usually in /usr/lib/rabbitmq/bin) as any user.  You
will have to provide a writable mnesia directory and pid file via environmental

Francesco * Often in error, never in doubt

More information about the rabbitmq-discuss mailing list