5-STM32物联网开发WIFI+GPRS基础篇(云端安装MQTT服务器)

 https://www.cnblogs.com/yangfengwu/p/10546832.html

如果自己下载的3.1版本的MQTT,     If you download version 3.1 of MQTT

安装步骤参考    Installation step reference

https://developer.emqx.io/docs/emq/v3/cn/install.html

 

配置用户名和密码第一种是用http     The first way to configure username and password is to use HTTP

https://github.com/emqx/emqx-auth-username/blob/master/README.md   我没有测试    I didn't test it

第二种命令行发送命令   The second sends commands

 

 可以执行个emqx_ctl   可以查看所有的命令      You can execute    emqx_ctl     View all commands

 

 

 

记得把文件拷贝到上一节配置的和云端共享的那个盘里面,好拷贝文件到云服务器     Copy files  to  data disks connected to the cloud

如果用linux安装,看这篇   if you use linux look here

https://www.cnblogs.com/yangfengwu/p/10463724.html

 

 

 登录到云平台   Login to the cloud

 

根据自己的选择   Select your own disk

 

 

 

 

 拷贝到云端   Copy to cloud

 

 

 把安装包解压到C盘   Install package unzip

 

 

 

 

Using the command   into   ....

 

 

 

 咱先以控制台的模式启动哈,关掉控制台,MQTT也就关了       Console mode starts    Notice:   if  Console  closed  the MQTT  is  closed

emqttd console

 

 

 

据我使用,无论是32位的还是64位的系统,只拷贝32位补丁就可以     Just copy this file  the  32bit

 

 

 

 

 

 

 重新弄一下         execute   emqttd  console    look  below

  

 

 

Test  MQTT 

 

 

 

 

 

然后测试一下两个客户端通信

 

 

修改用户名和密码       Change the username and password     to connect to the MQTT  server 

退出控制台    Closed  Console

 

 

Into  File

 

amend  

 

 

自己修改成自己想要的     Change it to what you want

 

 

 This is my modification   

 

 

 启动控制台     Console mode starts

 

浏览器输入,根据自己的服务器哈,         Browser access   http://you IP:18083

 

Default username and password for login     admin   public

 

 

 

Click on the  Plugins   

 

Select   LOOK     Click on the  Start

 

 

 

Testing

 

 

 

Turn off the console       

Another way to start

 

安装好了    installed   OK

 

Other commands

其它命令

 

https://www.cnblogs.com/yangfengwu/p/10840517.html

 

转载于:https://www.cnblogs.com/yangfengwu/p/10547024.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值