Install EMQ server in linux to realize MQTT message transmission
Download and install EMQ
Link: https://www.emqx.io/cn/downloads#broker
To choose the version that is relevant to you I am ubuntu18.4
installation method I chose deb, and install it directly into the system bin.
I installed it directly through the command, without compiling the installation package
- download
wget https://www.emqx.io/cn/downloads/broker/v4.2.2/emqx-ubuntu18.04-4.2.2-x86_64.deb
- installation
sudo dpkg -i emqx-ubuntu18.04-4.2.2-x86_64.deb
- start up
sudo emqx start
Everyone will see this interface
Starting emqx on node [email protected]
Start http:management listener on 8081 successfully.
//网页端口
Start http:dashboard listener on 18083 successfully.
//本机连接mqtt:tcp端口
Start mqtt:tcp listener on 127.0.0.1:11883 successfully.
//所有主机连接的端口
Start mqtt:tcp listener on 0.0.0.0:1883 successfully.
网页套接字连接的端口
Start mqtt:ws listener on 0.0.0.0:8083 successfully.
//安全连接的端口
Start mqtt:ssl listener on 0.0.0.0:8883 successfully.
Start mqtt:wss listener on 0.0.0.0:8084 successfully.
EMQ X Broker 4.1.1 is running now!
- CTRL+C Close the console. Start in daemon mode:
./bin/emqx start
Then you can access emq through ip: 18083. If you can't open it, it means the port is not open. Just open it.