当前位置:网站首页>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
边栏推荐
- Understand the working principle of timer in STM32 in simple terms
- The problem of modifying the coordinate system of point cloud image loaded by ndtmatching function in autoware
- [云原生]微服务架构是什么
- Number of consecutive subarrays with leetcode/ and K
- 数学建模——自来水管道铺设问题
- leetcode/乘积小于K 的连续子数组的个数
- 一文读懂Okaleido Tiger近期动态,挖掘背后价值与潜力
- 忽略微信设置字体
- Control buzzer based on C51
- Comprehensive use method of C treeview control
猜你喜欢

Flexible layout single selection

Motionlayout -- realize animation in visual editor

E-commerce keyword research helps data collection

一文读懂Okaleido Tiger近期动态,挖掘背后价值与潜力

Large scale web crawling of e-commerce websites (Ultimate Guide)

LeetCode 练习——剑指 Offer 45. 把数组排成最小的数

数学建模——自来水管道铺设问题

【ONE·Data || 数组堆简单实现及其延伸】

ciscn 2022 华中赛区 misc

Anti crawler mechanism solution: JS code generates random strings locally
随机推荐
[云原生]微服务架构是什么
自定义mvc原理和框架实现
RGBD点云降采样
JVM内存溢出在线分析Dump文件以及在线分析打开.hprof文件得出JVM运行报告jvisualvm怎么在线分析
leetcode/和为k的连续子数组个数
Lxml web page capture the most complete strategy
Introduction to shared data center agent
leetcode/0和1个数相同的连续子数组
(arxiv-2018) 重新审视基于视频的 Person ReID 的时间建模
webview攻击
一文读懂Okaleido Tiger近期动态,挖掘背后价值与潜力
【RT学习笔记1】RT-Thread外设例程——控制Led灯闪烁
"Wei Lai Cup" 2022 Niuke summer multi school training camp 2, sign in question GJK
Resolve the conflict with vetur when using eslint, resulting in double quotation marks and comma at the end of saving
Leetcode 242. valid anagram
2022.7.28-----leetcode.1331
Mathematical modeling -- Optimization of picking in warehouse
Comprehensive explanation of "search engine crawl"
解决使用ESlint时,和vetur冲突导致保存变双引号,结尾逗号等
How to prevent all kinds of affiliated fraud?