Installing Rabbit MQ on Windows guides, the best one is this Rabbit MQ Windows Installation guide , which also includes sample code for accessing Rabbit MQ using the .NET RabbitMQ.Client Nuget package.
Install RabbitMQ
Rabbit MQ is built on the powerful Erlang OTP platform, so the prerequisite for installing Rabbit MQ is to install Erlang. Download and install version 3.2.3 through the following two links:
- Download and install Eralng OTP For Windows (vR16B03) otp_win64_17.0.exe (erlang environment)
- Run Rabbit MQ Server Windows Installer (v3.2.3) rabbitmq-server-3.3.3.exe
The default installed Rabbit MQ listening port is 5672
Enter the command line:
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.3.3\sbin
Run the following command to enable the management plugin:
rabbitmq-plugins enable rabbitmq_management
You can see the output below
Stop the RabbitMQ service:
rabbitmq-service stop
Start the RabbitMQ service:
rabbitmq-service start
View plugin commands:
rabbitmq-plugins list
You can see the following output:
Even if it is enabled successfully.
Note:
Mochiweb
must have, MochiWeb is an
Erlang library for building a lightweight and efficient HTTP application framework for web applications. The rabbitmq_mochiweb guide is here .
The management and monitoring interface can be accessed in two ways:
1, Web UI
Open the browser, enter
http:// localhost :15672/
and press Enter, you will be asked to enter the username and password, just use the default guest/guest. After confirmation, the interface shown in Figure 1 will appear, and then you can control RabbitMQ to your heart's content .
The management UI is a static HTML page that queries the HTTP API via Javascript for real-time data. In essence, the Web UI is ultimately the Management command line tool that is invoked. RabbitMQ Management HTTP API documentation can be found
here
.
2. Command Line Tools
The Management
command line tool
has the same functionality as the Web UI, and may be easier to use for scripts. rabbitmqadmin is just a customized HTTP client. If you want to introduce rabbitmqadmin into your own program, you can use HTTP API directly.
rabbitmqadmin can be downloaded from http://
server-name
:15672/cli page or
here
.
After downloading rabbitmqadmin.txt, rename it to rabbitmqadmin, copy it to /usr/local/bin or the path you want, and increase the executable permission.
#rabbitmqadmin --help
You can see the usage guide, and usage examples can be found
here
.
Reprinted from: