Moving Rabbit MQ to another Drive on Windows

Yasser Shaikh
Aug 3, 2018 · 2 min read

Problem

Rabbit MQ installs to “C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.1”. Even if you specify a different path during the installation, only the installation & setup files go to that path, the database i.e messages/queues/exchanges/users by default go under the user folder of the user installing it “C:\Users\yassershaikh\AppData\Roaming\RabbitMQ\db”.

Solution

  • Download & Install Erlang
  • Download & Install RabbitMQ.
  • Open command prompt as admin from “C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.6\sbin\” or from wherever you have made your rabbitmq installation, in my case it was the D drive, and run these commands
  • Run rabbitmq-service remove
  • Run set RABBITMQ_BASE=d:\RabbitMQ
  • Run rabbitmq-service install
  • And its done! Next you can install whatever plugins you need —
    rabbitmq-plugins enable rabbitmq_management to enable a web UI for managing and monitoring your RabbitMQ service is a must install.

Yasser Shaikh's blog

It's supposed to be automatic, but actually you have to push this button.

Yasser Shaikh

Written by

Yasser Shaikh's blog

It's supposed to be automatic, but actually you have to push this button.