Security :: Change RabbitMQ's default port

By default, RabbitMQ’s port is 5672.
See this page about RabbitMQ’s ports.

Here is how to change this default port.
Edit the configuration file for RabbitMQ.

On Debian systems, this file is located under /etc/rabbitmq/rabbitmq.config.
Please, refer to RabbitMQ’s web site for more details about this configuration file. By default, it does not exist, you have to create it.

Edit the tcp_listeners property to change its value.

%% Default configuration
[
  {rabbit, [{tcp_listeners, [5672]}]}
].