Rabbit MQ – Download, Install and Change Password

In this tutorial you will learn how to download, install and run Rabbit MQ on your computer. I am also going to show you how to change default Rabbit MQ Administrator password and how to create a new user.

Download, Install and Run Rabbit MQ

To download Rabbit MQ for your computer, visit the following URL https://www.rabbitmq.com/download.html. There are download and installation instructions for different platforms. I use Mac and I use Homebrew, so I followed this url to install Rabbit MQ with Homebrew: https://www.rabbitmq.com/install-homebrew.html.

Installing Rabbit MQ on Mac

In your terminal window:

  1. Update Homebrew with the following command brew update
  2. Install Rabbit MQ Server by running brew install rabbitmq
  3. Then run export PATH=$PATH:/usr/local/sbin
  4. Start Rabbit MQ server with rabbitmq-server command

Once you run the rabbitmq-server command to start Rabbit MQ server you should see the following in your terminal window:

Rabbit MQ Server is now running.

Access Rabbit MQ Server dashboard

To access Rabbit MQ dashboard,

  • open the following URL in your browser window: http://localhost:15672 and,
  • Login with user name guest and password guest

At the time of writing this blog post, Rabbit MQ dashboard looks like the one on the image below

Update User Password

To update default username and password from guest/guest, follow these steps.  

  1. open the following URL in your browser window: http://localhost:15672 and,
  2. Login with user name guest and password guest,
  3. Click on Admin tab. You should see a scree as on the image below

4. Click on the guest user name and scroll down the page to find Update this user section. It should look like on the image below:

5. Provide a new password for this user and click on Update user button.

Create New User

To create a new User, follow the below steps

  1. open the following URL in your browser window: http://localhost:15672 and,
  2. Login with user name guest and password guest,
  3. Click on Admin tab. You should see a scree as on the image below

4. Expand the Add a user section. Once “Add a user” section expanded you should see a form like on the image below:

5. Provide a new Username, Password and Tags. To learn what the Tags are click on the ?(question mark) link at the end of Tags input text field.

This should help you create a new user.

I hope this tutorial was helpful to you. If you use Rabbit MQ with Spring Cloud Bus to create RESTful Microservices, then have a look at the list of other tutorials I have on this topic.