Get Started with EMQX Enterprise
EMQX is the world’s most scalable and reliable MQTT messaging platform that can help you to connect, move and process your business data reliably in real-time. With this all-in-one MQTT platform, you can easily build your Internet of Things (IoT) applications with significant business impacts.
This chapter gives you a tour of how to download and install EMQX and how to test the connecting and messaging services with our built-in WebSocket tool.
TIP
Besides the deployment methods introduced in this quickstart guide, you are also welcome to try our EMQX Cloud, a fully managed MQTT service for IoT. You only need to register for an account before you can start your MQTT services and connect your IoT devices to any cloud with zero need for infrastructure maintenance.
Install EMQX
EMQX can be run with Docker, installed with EMQX Kubernetes Operator, or installed on a computer or virtual machine (VM) via a download package. If you choose to install EMQX with a download package, the following operating systems are currently supported:
- RedHat
- CentOS
- RockyLinux
- AmazonLinux
- Ubuntu
- Debian
- macOS
- Linux
For other platforms not listed above, you can try to simply contact EMQ for support.
In addition, you can also deploy EMQX with one click through EMQX Terraform on the cloud, for example, Alibaba Cloud and AWS.
Install EMQX using Docker/Installation Package
This quick start guide shows you the easiest ways to install and run EMQX, either through Docker or using the installation package.
Container deployment is the quickest way to start exploring EMQX. In this section, we will show you how to run EMQX with Docker.
To download and start the latest version of EMQX, enter the command below.
Ensure Docker is installed and running before you execute this command.
bashdocker run -d --name emqx -p 1883:1883 -p 8083:8083 -p 8084:8084 -p 8883:8883 -p 18083:18083 emqx/emqx-enterprise:latest
Start your web browser and enter
http://localhost:18083/
(localhost
can be substituted with your IP address) in the address bar to access the EMQX Dashboard, from where you can connect to your clients or check the running status.Default user name and password:
admin
public
Use MQTTX to Verify Connection
Now that you have successfully started EMQX, you can continue to test the connection and message services with MQTTX.
MQTTX is an elegant cross-platform MQTT 5.0 desktop client, running on macOS, Linux, and Windows. By utilizing a chat style of user interface, MQTTX allows users to quickly create connections and save multiple clients, which facilitates users to quickly test the MQTT/MQTTS connection, as well as the subscription and publication of MQTT messages.
This section introduces how to verify the connection with MQTTX Web, the browser-based MQTT 5.0 WebSocket client tool, with zero need to download or install any application.
Prerequisites
The broker address and the port information should be prepared before testing the connection:
- EMQX address: The IP address of your server, in general.
- Port: Click Management -> Listeners from the left navigation menu in the Dashboard to get the port number.
Create a Connection
Click MQTTX Web to visit the browser-based MQTTX.
Configure and establish the MQTT connection. Click the + New Connection button to enter the configure page:
Name: Input a connection name, for example,
MQTTX_Test
.Host
- Select the protocol type via the drop-down list, for example, select
ws://
if the WebSockets protocol is adopted; MQTTX Web only supports Websockets protocol, to test the SSL/TLS connection, download MQTTX desktop client; - Fill in the EMQX address, for example, emqx@127.0.0.1;
- Select the protocol type via the drop-down list, for example, select
Port: for example,
8083
is for the WebSockets protocol;Keep the default setting for the other fields or set it as your business needs. For a detailed explanation of different fields, see MQTT User Manual - Connect.
Click the Connect button at the top right corner of the page.
Test the publish/receive of messages: Click the send icon in the bottom right corner of the chat area, then the messages successfully sent will appear in the chat window above.
Publish and Subscribe to Topics
After the connection is successfully established, you can continue to subscribe to different topics and publish messages.
Click + New Subscription. MQTTX Web has already filled in some fields, according to the setting, you will subscribe to topic
testtopic/#
with QoS level of 0. You can repeat this step to subscribe to different topics, and MQTTX Web will differentiate topics with colors.In the right corner of the chat area at the bottom, click the send icon to test the message publishing/receiving. The messages successfully sent will appear in the chat window.

If you want to continue the testing, such as one-way/two-way SSL authentication, and simulate test data with customized scripts, you can continue to explore with MQTTX.
View Metrics on Dashboard
On the Cluster Overview page in the EMQX Dashboard, you can check metrics such as Connections, Topics, Subscriptions, Incoming Messages, Outgoing messages, and Dropped Messages.
{% emqxee}
Next Steps
So far, you have completed the installation, startup, and access test of EMQX, you can continue to try out more advanced capabilities of EMQX, such as authentication and authorization and integration with Rule Engine.
Contact Us
If you have any questions on the use of EMQX or EMQ products, you are warmly welcome to contact us for professional support.