How to modify the port of RabbitMQ 3.8.5

Create a configuration file

cd /etc/rabbitmq

vi rabbitmq.conf

Add to:

#The default port is 5672

listeners.tcp.default=modified port
#interface management port (default port is 15672)
management.tcp.port=modified port

Two modify the rabbitmq-defaults file, add the configuration file path

vi /usr/lib/rabbitmq/lib/rabbitmq_server-3.8.5/sbin/rabbitmq-defaults

Add to:

CONFIG_FILE=/etc/rabbitmq/rabbitmq.conf

Three restart RabbitMQ

systemctl restart rabbitmq-server

Guess you like

Origin blog.csdn.net/yabignshi/article/details/112372405