How to change RabbitMQ default port?

Hi,

I was trying to change default port of RabbitMQ and spent so many hours on this. When you change port number of rabbitmq in the rabbitmq.config file, even you restart service, or restart the system. The RabbitMQ crash or doesn’t work on port number that I wrote into the config file 🙂 That’s why I  spent so many hours. I am writing this article so that you do not lose a lot of time.

 

RabbitMQ

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.7\etc : You can find rabbitmq-config.example

C:\Users\Administrator\AppData\Roaming\RabbitMQ : This is the main directory where we going to change the config file.

Edit the “rabbitmq.config” file,

and find the “rabbitmq_management” subject and change the port number that you want to use. Do not forget to remove “%%” comment line of the sentence which starts “{listener…..}”.

After that go to the following directory and on the top you’ll see File, click it and then start CMD in Administrator mode. After that use the following command and wait until it finish. It can take 2-5-7 min.

Directory : C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.7\sbin

Command : rabbitmq-plugins.bat enable rabbitmq_management

And when the command finished, please check if you can access RabbitMQ management or not.

If you can’t access it, you might made mistake or there is other problem, you can check if the RabbitMQ service running by using Services program. You can also look at the Logs in the directory that I said in the first page of this blog post.

 

Tagged with: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Archives