Change tcp_listener ports from the Default

484 views
Skip to first unread message

Harry Simpson

unread,
Dec 27, 2017, 9:10:09 AM12/27/17
to rabbitmq-users

I've installed Erlang and RabbitMQ successfully and the RabbitMQ is running fine. My next instructions are to open the following file C:\Users{userName}\AppData\Roaming\RabbitMQ\rabbitmq.config for editing

Delete any contents from the rabbitmq.config file and replace with the follow:

 [
    {rabbit, [{tcp_listeners, [8709]}]},
    {rabbitmq_management, [{listener, [{port, 8710}]}]}
 ].

Reinstall the RabbitMQ service with C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.11\sbin>rabbitmq-service.bat install

Go to Windows Services and start the RabbitMQ service Verify the RabbitMQ ports have changed by going to http://localhost:8710/

All of this doesn't work and the only way I can pull up the Web admin tool is by going to the default http://localhost:15672 site and none of the ports have changed.

Is there another way I can make sure this port change takes place? Is RabbitMQ getting the config from some other place other than C:\Users{userName}\AppData\Roaming\RabbitMQ\rabbitmq.config?

TIA Harry

Luke Bakken

unread,
Dec 27, 2017, 10:01:15 AM12/27/17
to rabbitmq-users
Hi Harry,

I'm assuming that {userName} is the name of the administrative user you used to install Erlang and RabbitMQ.

I just thought I'd mention that RabbitMQ 3.7.2 is available and that you should give it a try as the configuration format is simpler than previous versions.

After creating the configuration file, you shouldn't have to reinstall RabbitMQ as a Windows Service - did you read that information somewhere? You only have to stop and start the service, which you can do with rabbitmq-service stop and rabbitmq-service start

I used your configuration in a Windows 8.1 VM that I have and the configuration was applied correctly. I installed version 3.6.14, enabled the rabbitmq_management plugin, created the configuration file in %AppData%\Roaming\RabbitMQ, and restarted the service.

Thanks -
Luke
Reply all
Reply to author
Forward
0 new messages