我现在有两个节点:
node1 配置如下:
node {
name = "emqx@fd00:6868:6868:0:20c:29ff:fef5:b6e4"
#name = "emqx@192.168.10.21"
cookie = "emqxsecretcookie"
data_dir = "/var/lib/emqx"
}
cluster {
name = emqxcl
discovery_strategy = static
static {
seeds = ["emqx@fd00:6868:6868:0:20c:29ff:fef5:b6e4", "emqx@fd00:6868:6868:0:20c:29ff:fe6d:20a0"]
}
proto_dist = inet6_tcp
}
listeners.tcp.default {
bind = "[fd00:6868:6868:0:20c:29ff:fef5:b6e4]:1883"
max_connections = 1024000
}
node2 配置如下:
node {
name = "emqx@fd00:6868:6868:0:20c:29ff:fe6d:20a0"
cookie = "emqxsecretcookie"
data_dir = "/var/lib/emqx"
}
cluster {
name = emqxcl
proto_dist = inet6_tcp
discovery_strategy = static
static {
seeds = ["emqx@fd00:6868:6868:0:20c:29ff:fef5:b6e4", "emqx@fd00:6868:6868:0:20c:29ff:fe6d:20a0"]
}
}
listeners.tcp.default {
bind = "[fd00:6868:6868:0:20c:29ff:fe6d:20a0]:1883"
max_connections = 1024000
}
启动以后,emqx_ctl cluster status 显示集群状态正常:
Cluster status: #{running_nodes =>
['emqx@fd00:6868:6868:0:20c:29ff:fe6d:20a0',
'emqx@fd00:6868:6868:0:20c:29ff:fef5:b6e4'],
stopped_nodes => []}
web 页面集群状态也显示正常。
现在的问题是:我在 node1 订阅,
mosquitto_sub -h fd00:6868:6868:0:20c:29ff:fe6d:20a0 -p 1883 -t test_topic
无法收到在 node2 发布的消息
mosquitto_pub -h fd00:6868:6868:0:20c:29ff:fef5:b6e4 -p 1883 -t test_topic -m “Hello, EMQX!”
但是在 ipv4 下就一切正常,烦请帮忙解答,谢谢