emqx banner

Description

EMQ X broker is a fully open-source, highly scalable, highly available distributed MQTT messaging broker for IoT, M2M and Mobile applications that can handle tens of millions of concurrent clients.

Starting from the 3.0 release, EMQ X broker fully supports MQTT V5.0 protocol specifications and backward compatible with MQTT V3.1 and V3.1.1, as well as other communication protocols such as MQTT-SN, CoAP, LwM2M, WebSocket and STOMP. The 3.0 release of the EMQ X broker can be scaled to 10+ million concurrent MQTT connections on one cluster.

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 EMQ X 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 EMQ X FAQ (https://docs.emqx.io/broker/latest/en/faq/faq.html) to get the help of common problems.

Get it from the Snap Store

Search for another snap, or go back to the homepage.