Then open rabbitmq.config, find key tcp_listeners, remove the%% comment in front, and then change the integer value 5672 at the back to the port number you want, as shown in the figure below, and then your port number will be modified.
Next, find the heartbeat, remove the comments, change the heartbeat time to the value you want, and remember to remove the comma after! ! !
Next, you need to edit the environment variable and add the variable name "RABBITMQ_CONFIG_FILE" to the system environment variable, with the value of ETC RABBITMQ in your rabbitmq installation directory (note, don't add it; ), as shown in the figure below.
Finally, use the command to stop, update and start the Rabbitmq service.
Log in to the web management interface, and the value you saw in the timeout of the connection was modified by you, so congratulations, success! If not, please read this blog carefully. If not, you can call me.