Ubuntu下安装EMQtt

1.下载

1.1:MQTT服务器软件下载地址:http://emqtt.com/downloads ,复制链接ununtu对应的版本!

1.2:主机下载MQTT软件,在控制台输入:

wget http://emqtt.com/static/brokers/emqttd-ubuntu16.04-v2.2.0.zip

2.解压缩
2.1先安装解压压缩包 软件,控制台输入 :

sudo apt-get install unzip

2.2解压Emqtt的压缩包,控制台输入:

unzip emqttd-ubuntu16.04-v2.2.0.zip

结果:名为emqtt的目录被解压缩出来

3.以console模式启动emqttd

cd emqttd && ./bin/emqttd console

结果:

starting emqttd on node ‘[email protected]
emqttd ctl is starting…[ok]
emqttd hook is starting…[ok]
emqttd router is starting…[ok]
emqttd pubsub is starting…[ok]
emqttd stats is starting…[ok]
emqttd metrics is starting…[ok]
emqttd retainer is starting…[ok]
emqttd pooler is starting…[ok]
emqttd trace is starting…[ok]
emqttd client manager is starting…[ok]
emqttd session manager is starting…[ok]
emqttd session supervisor is starting…[ok]
emqttd wsclient supervisor is starting…[ok]
emqttd broker is starting…[ok]
emqttd alarm is starting…[ok]
emqttd mod supervisor is starting…[ok]
emqttd bridge supervisor is starting…[ok]
emqttd access control is starting…[ok]
emqttd system monitor is starting…[ok]
dashboard listen on 0.0.0.0:18083 with 4 acceptors.
mqtt listen on 0.0.0.0:1883 with 16 acceptors.
mqtts listen on 0.0.0.0:8883 with 4 acceptors.
http listen on 0.0.0.0:8083 with 4 acceptors.
Erlang MQTT Broker 2.0 is running now
Eshell V7.3 (abort with ^G)

  1. 退出console模式,后台启动

Ctrol+C,a 退出console

./bin/emqttd start 后台启动emqttd

./bin/emqttd_ctl status 检查启动状态

结果:

Node ‘[email protected]’ is started
emqttd 2.0 is running

在浏览器地址输入

http://主机地址:18083/

访问账号 admin ,密码 public


Ubuntu下安装EMQtt_第1张图片

调试设备

Ubuntu下安装EMQtt_第2张图片
Ubuntu下安装EMQtt_第3张图片

你可能感兴趣的:(MQTT)