我是 emqtt 和 erlang 的新手。使用 emqtt.io 中提供的文档,我在我的机器中配置了 emqtt,并想创建一个集群。我按照下面给出的步骤创建了一个节点
erl -name node1@127.0.0.1
erl -name node2@127.0.0.1
为了连接这些节点,我使用了以下命令。
(node1@127.0.0.1)1> net_kernel:connect_node('node2@127.0.0.1')
执行此命令后,我没有得到任何响应(真或假)。
我也尝试了以下命令
./bin/emqttd_ctl cluster emqttd@192.168.0.10
但收到失败消息
Failed to join the cluster: {node_down,'node1@127.0.0.1'}
当我点击 URL localhost:8080/status 我收到以下消息
Node emq@127.0.0.1 is started
emqttd is running
但我无法获得有关集群的任何详细信息。
我是否遵循正确的步骤?在 emqtt 中创建集群需要帮助。
提前致谢!!