emqx.conf 配置如下
node {
name = “emqx@192.168.6.26”
cookie = “emqxcookie”
data_dir = “/var/lib/emqx”
}
cluster {
name = emqxcl-2
discovery_strategy = static
static{
seeds = [“emqx@192.168.6.24”, “emqx@192.168.6.26”]
}
}
dashboard {
listeners.http {
bind = 28083
}
}
listeners.tcp.default {
bind = 2883
}
listeners.ws.default {
bind = 18083
}