EMQX is the most scalable and popular open-source MQTT broker with a high performance that connects 100M+ IoT devices in 1 cluster at 1ms latency. Move and process millions of MQTT messages per second.
The EMQX v5.0 has been verified in test scenarios to scale to 100 million concurrent device connections, which is a critically important milestone for IoT designers. It also comes with plenty of exciting new features and huge performance improvements, including a more powerful rule engine (https://www.emqx.com/en/solutions/iot-rule-engine), enhanced security management, Mria database extension, and much more to enhance the scalability of IoT applications.
During the last several years, EMQX has gained popularity among IoT companies and is used by more than 20,000 global users from over 50 countries, with more than 100 million IoT device connections supported worldwide.
For more information, please visit the EMQX homepage (https://www.emqx.io/).
Installation
sudo snap install emqx
Quick Start
# Start emqx
sudo emqx start
# Check Status
sudo emqx.ctl status
# Stop emqx
sudo emqx stop
To view the dashboard after running, use your browser to open: http://localhost:18083
Configuration
By default, the configuration file for EMQX is stored in the /snap/emqx/current/emqx/snap_data
directory.
ubuntu@test:~$ ls -l /snap/emqx/current/emqx/snap_data
total 0
drwxr-xr-x 5 root root 103 Sep 15 17:35 data
drwxr-xr-x 5 root root 144 Sep 15 17:35 etc
If the default configuration file does not meet your actual needs, you can copy the default configuration file to the user configuration directory and modify it. The file in the user configuration directory will overwrite the default configuration file.
# Go to the default configuration directory
cd /snap/emqx/current/emqx/snap_data
# Copy the default configuration file to the user configuration directory and modify it
sudo cp -r -n ./* /var/snap/emqx/common/
FAQ
Visiting EMQX FAQ (https://www.emqx.io/docs/en/v4.4/faq/faq.html) to get the help of common problems.