# Get Started
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.
Besides the deployment methods introduced in this quickstart guide, you are also welcome to try our EMQX Cloud (opens new window), a fully managed MQTT service for IoT. You only need to register for an account (opens new window) 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 (opens new window), 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:
For other platforms not listed above, you can try to simply contact EMQ (opens new window) for support.
# Install EMQX With Docker/Installation Package
In this quick start guide, we will show you the easiest ways to start or run EMQX, that is, with Docker or with the installation package.
To run EMQX, enter:
Start your web browser and enter
localhostcan 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.
The default user name and password are
public. You will be prompted to change the default password once logged in.
To stop EMQX, enter:
To uninstall EMQX after your testing, you only need to delete the EMQX folders.
# Use MQTTX to Verify Connection
Now that you have successfully started EMQX, you can continue to test the connection and message services with MQTT X
MQTT X (opens new window) is an elegant cross-platform MQTT 5.0 desktop client, running on macOS, Linux, and Windows. By utilizing a chat style of user interface, MQTT X 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 will introduce how to verify the connection with MQTT X Web (opens new window), the browser-based MQTT 5.0 WebSocket client tool, with zero need to download or install any application.
The broker address and the port information should be prepared before testing the connection:
- Broker address: The IP address of your server, in general.
- Port: Click Management -> Listeners on the left navigation menu to get the port number.
Click MQTT X Web (opens new window) to visit the browser-based MQTT X.
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;
- Select the protocol type via the drop-down list, for example, select ws:// if the WebSockets protocol is adopted; MQTT X Web only supports Websockets protocol, to test the SSL/TLS connection, download MQTT X desktop client (opens new window);
- Fill in the EMQX address, for example, email@example.com;
Port: for example, 8083 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 (opens new window).
Then click the Connect button at the top right corner of the page.
Subscribe to topics. After the connection is successfully established, you can continue to subscribe to different topics. Click + New Subscription. MQTT X 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 MQTT X Web will differentiate topics with colors.
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.
If you'd like 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 MQTT X (opens new window).
Then you can click Dashboard in the left navigation tree to return to the Dashboard page and check metrics such as Connections, Topics, Subscriptions, Incoming Messages, Outgoing messages, and Dropped Messages.
# Advanced Operation
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 (opens new window) for professional support.