Install RabbitMQ
If you plan on to host RabbitMQ locally, you can either install RabbitMQ in your local workspace or run a RabbitMQ Docker container in your local workspace.
To install RabbitMQ in your local workspace:
- Make sure you have already installed Chocolatey Package Manager
- RunAsAdministrator - Windows Powershell
- From the powershell prompt run the following command to install RabbitMQ:
choco install rabbitmq
- Follow the installation prompts
- After the installation completes if you have no critical errors, RabbitMQ should now be installed in your local workspace.
- To verify RabbitMQ is now running in your local workspace, open a browser window and go to the following URL:
http://localhost:15672/ - You should see a login screen for the RabbitMQ web interface. The default RabbitMQ username and password is as follows:
To install RabbitMQ in your docker:
- Make sure you have installed Docker.
- RunAsAdministrator - Windows Powershell
- First, let’s pull the RabbitMQ docker image. We’ll use the
3-management
version, so we get the Management plugin pre-installed.
docker pull rabbitmq:3.12-management Now let’s stand it up. We’ll map port
15672
for the management web app and port5672
for the message broker.
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.12-managementAssuming that ran successfully, you’ve got an instance of RabbitMQ running! Bounce over to http://localhost:15672 to check out the management web app.
You should see a login screen for the RabbitMQ web interface. The default RabbitMQ user name and password is as follows:
username: guest
password: guest
Here you can see an overview of your RabbitMQ instance and the message broker’s basic components: Connections, Channels, Exchanges, and Queues.
No comments:
Post a Comment