Here we only introduce how to build mqtt in centos7 environment, and at the same time cooperate with the whole springboot of java
1. First download the installer to centos7, you can do this on Baidu, there are many step-by-step tutorials on the Internet, just skip it here.
2. After downloading and installing, do some preparatory work first.
Install wget command: yum -y install wget
After success, download the mqtt version directly. What I downloaded here is the x86 version of 4.2.14 under centos7, which can be adjusted according to different situations. Official website link: Download EMQX
3. After the download and decompression is completed, it can be started directly
sudo systemctl start emqx
4. You can view the port status after startup
netstat -anp
If the netstat command is not found, you can install it directly: yum install net -tools -y
5. Please check whether the port number 11883 is open
If it is on a local virtual machine, you only need to close the open port of the firewall
If it is deployed on Ali's server, you need to develop a port on Ali
Ali's development port can be Baidu by itself
Close the firewall command: systemctl stop firewalld.service
View firewall command: systemctl status firewalld.service
6. Last night, these browsers can be opened to output http://127.0.0.1:18083
The login account is admin and the password is admin