Setting Up Your Own MQTT Server on CentOS

1. Download the installation package

curl -s https://assets.emqx.com/scripts/install-emqx-rpm.sh | sudo bash

Setting Up Your Own MQTT Server on CentOSEdit

2. Install

yum install emqx -y

Setting Up Your Own MQTT Server on CentOSEdit

3. Start the service

systemctl start emqx

Setting Up Your Own MQTT Server on CentOSEdit

4. Access the console

Setting Up Your Own MQTT Server on CentOSEdit

The default username and password are: admin/public

After logging in, be sure to change the default password

5. Test

Setting Up Your Own MQTT Server on CentOSEdit

The above image simulates two clients. The installation packages for these two clients can be obtained by following the easy4java WeChat account and replying with mqtt.

Console overview page

Setting Up Your Own MQTT Server on CentOSEdit

Leave a Comment