How to properly change a location of RabbitMQ data directory?

1,348 views
Skip to first unread message

Alexandr Porunov

unread,
Oct 6, 2016, 4:05:33 PM10/6/16
to rabbitmq-users
Hello,

I am using RabbitMQ on Centos 7.
I have the following environment variable:
export RABBITMQ_CONF_ENV_FILE=/etc/rabbitmq/rabbitmq-env.conf

I have created the file /etc/rabbitmq/rabbitmq-env.conf with the folowing content:
RABBITMQ_BASE=/srv/node/d1

/srv/node/d1 has next rights:
chown rabbitmq:rabbitmq -R /srv/node/d1/
chmod 766 -R /srv/node/d1/

Then used next commands to reset a node:
rabbitmqctl stop_app
rabbitmqctl reset
rabbitmqctl start_app

Unfortunately it doesn't change.

Sincerely,
Alexandr

Michael Klishin

unread,
Oct 6, 2016, 4:42:08 PM10/6/16
to rabbitm...@googlegroups.com
For environment variables to take effect you need to restart the service (via systemd, init.d or what have you).
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexandr Porunov

unread,
Oct 7, 2016, 12:36:33 AM10/7/16
to rabbitmq-users
I have restart rabbitmq-server also. It doesn't work. Also I tried to reboot the system. Nothing changed..

Michael Klishin

unread,
Oct 7, 2016, 1:38:56 AM10/7/16
to rabbitm...@googlegroups.com
Env files don't use the RABBITMQ prefix.

On 7 Oct 2016, at 07:36, Alexandr Porunov <alexandr...@gmail.com> wrote:

I have restart rabbitmq-server also. It doesn't work. Also I tried to reboot the system. Nothing changed..

--
Reply all
Reply to author
Forward
0 new messages