当前位置:网站首页>Internet of things development -- mqtt message server emqx
Internet of things development -- mqtt message server emqx
2022-07-29 02:14:00 【CK continues to grow】
Catalog
1.2 ubuntu Of apt Source installation
1.3 Pull the source code for installation
EMQX The official introduction
EMQX It's completely open source , Highly scalable , Highly available distributed MQTT Message server , It can handle tens of millions of concurrent clients .EMQX Full support MQTT V5.0 Protocol specification , Backwards compatible MQTT V3.1 and V3.1.1.
We need to install one first EMQX The message service . Here we use the environment :
operating system :ubuntu 18.04
EMQX Use version :v5.0.3
1. install EMQX
install EMQX There are several ways ,1:docker Image mount ,2: Download the official binary package directly ,3: Download the source code to compile and install
1.1 docker Image mount
- obtain docker Mirror image
// obtain Docker Mirror image docker pull emqx/emqx - start-up docker Containers
docker run -d --name emqx -p 1883:1883 -p 8083:8083 -p 8084:8084 -p 8883:8883 -p 18083:18083 emqx/emqx - visit EMQX Of dashboard
http://192.168.1.181:18083/#/loginexplain :EMQX Of Dashboard The default login account / password : admin/public. The default account password is configured in /e tc/emqx/emqx.conf in
1.2 ubuntu Of apt Source installation
- To configure EMQX Of APT Source
curl -s https://assets.emqx.com/scripts/install-emqx-deb.sh | sudo bash - Use APT install EMQX
sudo apt-get install emqx - start-up EMQX
sudo emqx startIt can be used after successful startup
emqx pingCommand to detect the running state of the node , returnpongIndicates normal operation :
sudo emqx pingOr start as a service :
sudo systemctl start emqx- visit EMQX
http://192.168.1.181:18083/#/login
1.3 Pull the source code for installation
notes : structure EMQX need Erlang/OTP R21+.
- 1. from git Pull source code
git clone https://github.com/emqx/emqx.git - 2. Switch to v5.0.3 Version of
cd emqx git checkout v5.0.3 - 3. Compile source code
After compilation, there are emqx and emqx_ctl Two binary filesmake
2. mqtt Client side usage
EMQX After installation , Let's install a desktop client to actually verify ,mqtt There are many clients , such as MQTT.fx, MQTT Box etc. , Here we use EMQX Official mqtt client MQTT X.
Download address : As a free download 、 The trial EMQ product
2.1 Install well Mqtt X After the client , To configure mqtt Link to

Click on the "Connect", Prompt after successful connection , Get into EMQX Of Dashboard Interface , Check whether there is a connection record

2.2 stay mqtt x The client adds a subscription topic, be known as “/iot/device/msg/push”

2.3 Add subscribed topic after , We send a message at the bottom of the interface to the above topic

We can see the messages we sent and the subscription messages we received in the middle area
3. Reference material
emqx Community open source : download EMQX
github Address :GitHub - emqx/emqx: The most scalable open-source MQTT broker for IoT
边栏推荐
- [UE4] replay game playback for ue4.26
- Form verification hidden input box is displayed before verification
- Force deduction brush question (1): sum of two numbers
- Promise解决异步
- 数学建模——红酒品质分类
- "Wei Lai Cup" 2022 Niuke summer multi school training camp 2, sign in question GJK
- druid. io kill -9 index_ Realtime traceability task
- How companies make business decisions -- with the help of data-driven marketing
- 为什么 BI 软件都搞不定关联分析
- Sharpness evaluation method without reference image
猜你喜欢

物联网开发--MQTT消息服务器EMQX

弹性布局 单选

Ciscn 2022 central China Misc

(arxiv-2018) reexamine the time modeling of person Reid based on video

druid. IO custom real-time task scheduling policy

Motionlayout -- realize animation in visual editor

iVX低代码平台系列详解 -- 概述篇(二)

Mathematical modeling -- Optimization of picking in warehouse

“蔚来杯“2022牛客暑期多校训练营2,签到题GJK

Mathematical modeling -- cold proof simulation of low temperature protective clothing with phase change materials
随机推荐
ciscn 2022 华中赛区 misc
全志T3/A40i工业核心板,4核[email protected],国产化率达100%
一文读懂Okaleido Tiger近期动态,挖掘背后价值与潜力
LeetCode 练习——剑指 Offer 45. 把数组排成最小的数
(cvpr-2019) selective kernel network
Form verification hidden input box is displayed before verification
Try to understand the essence of low code platform design from another angle
The growth path of embedded engineers
leetcode/和大于等于target的连续最短子数组
MySQL high performance optimization notes (including 578 pages of notes PDF document), collected
2022.7.28-----leetcode.1331
QT source code analysis -- QObject (4)
How to crawl web pages with playwright?
【云原生与5G】微服务加持5G核心网
Probability Density Reweight
[circuit design] peak voltage and surge current
What is browser fingerprint recognition
The solution of reducing the sharpness of pictures after inserting into word documents
[云原生]微服务架构是什么
What is the function of data parsing?