EMQ 安装 —— Windows 7

本文是在 Windows 7(64 bit)操作系统中安装 EMQ 2.0 (Erlang/Enterprise/Elastic MQTT Broker) 的指导。

  1. 下载 EMQ,本文使用 emqttd-windows7-v2.3.11.zip
  2. 将 EMQ 安装文件解压到本地目录(可自由选择);
  3. 利用 cmd 命令进入 Windows 命令提示窗口,进入 EMQ 解压目录下的 bin 文件夹,输入命令 emqttd console,会自动打开 Erlang 窗口并打印类似如下启动日志:
kernel-poll not supported; "K" parameter ignored
Erlang/OTP 19 [erts-8.3] [64-bit] [smp:4:4] [async-threads:32]

starting emqttd on node 'emq@127.0.0.1'
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 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]
emqttd 2.3.11 is running now
Eshell V8.3  (abort with ^G)
(emq@127.0.0.1)1> Load emq_mod_presence module successfully.
dashboard:http listen on 0.0.0.0:18083 with 4 acceptors.
mqtt:tcp listen on 127.0.0.1:11883 with 4 acceptors.
mqtt:tcp listen on 0.0.0.0:1883 with 16 acceptors.
mqtt:ws listen on 0.0.0.0:8083 with 4 acceptors.
mqtt:ssl listen on 0.0.0.0:8883 with 16 acceptors.
mqtt:wss listen on 0.0.0.0:8084 with 4 acceptors.
mqtt:api listen on 0.0.0.0:8080 with 4 acceptors.
  1. 打开浏览器,输入 http://localhost:18083/ 进入 EMQ 控制台,默认用户名【admin】,密码【public】
11-30 09:07