Install EMQX on CentOS7 to build MQTT service
Reference
Official website Product Documentation MQTTPerform installation
First, we need to install some dependent projects, and then we need to add the YUM source information of EMQX. After adding, we can install EMQX. Please refer to the example below for operation.
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://repos.emqx.io/emqx-ce/redhat/centos/7/emqx-ce.repo
yum -y install emqx
Start the service and change the administrator password
emqx start
emqx_ctl admins passwd admin my_password
Verify installation
After the installation is complete, the default bound IP is 0.0.0.0. We use the browser to directly access port 18083 of the server IP to open the web management page. If it can be opened normally, the installation is successful. Next, we log in with the administrator account admin and password my_password that we just set up. After the login is successful, we can see all the status of the server.