1. RabbitMQ is written in erlang language, so erlang must be installed before installing RabbitMQ
`RabbitMQ and erlang version correspondence: https://www.rabbitmq.com/which-erlang.html
erlang download address: https://www.erlang.org/downloads
After downloading, install it all the way, and then configure environment variables (take 23.1 version as an example).
Configure environment variables: ERLANG_HOME=G:\Program Files\erl-23.1
Added in Path: %ERLANG_HOME%\bin
Open the cmd window and enter the command: erl
At this point, the Erlang installation is complete
2: Install RabbitMQ
RabbitMQ detailed version information: https://www.rabbitmq.com/changelog.html
Download the latest version: https://www.rabbitmq.com/install-windows.html
Download all the way to install
Enter the sbin
directory of the RabbitMQ installation directory , then start the cmd window and enter the command:
rabbitmq-plugins enable rabbitmq_management
Plug After successful installation, double-clickrabbitmq-server.bat
, you can run the default port15672
Enter: http://localhost:15672 , test whether it can be accessed
The default username and password are:guest
The spring cloud bus can finally play happily