Install and build MQTT server under Windows

Commonly used servers are emqx, and apache apolle, emqx is used here

Server and client can use MQTTnet (NuGet package)

1. MQTT server (emqx) setup
1. Download server MQTT Broker Download MQTT Broker
from  https://www.emqx.io/cn/mqtt/public-mqtt5-broker .
Here I use the windows system, download the corresponding version tool: emqx-windows-v4.1-rc.2.zip
After downloading, the decompression directory is as follows:

2. Start the MQTT server

Start the CMD window, enter the bin directory, and run the following command:

The first is to start; the second is to check the running status. 

At this point, it means that the MQTT server is running normally. Then you can use other devices that support MQTT client to connect and use.

3. Enter the MQTT server console

emqx also provides a powerful console service, and various configurations can be performed by entering the console. 

After ensuring that emqx is running normally, enter in the browser: http://127.0.0.1:18083 

You can use admin/admin to log in, and the interface after normal login is as follows:

You can explore the use of the emqx console by yourself, so I won’t go into details here.

Guess you like

Origin blog.csdn.net/jhyBOSS/article/details/130840675