linux 下搭建mqtt服务器

下载地址 http://emqtt.io/downloads/stable/centos7  这是稳定版本,你也可以安装最新版本
命令: wget http://emqtt.io/downloads/stable/centos7

解压安装包  unzip centos7

cd emqttd

 ./bin/emqttd console

让它后台运行 CTRL+C 两次

开启:  ./bin/emqttd start

关闭: ./bin/emqttd stop

扫描二维码关注公众号,回复: 2392949 查看本文章

netstat -at   #查看mqtt 是否开启

到此为止MQTT服务器已经完全搭建好了

yum -y install python-pip

pip install paho-mqtt

参考:

搭建mqtt服务器

python 安装mqtt

paho-mqtt说明文档

猜你喜欢

转载自blog.csdn.net/weixin_39461487/article/details/81115555