开发者

Nodes not talking

开发者 https://www.devze.com 2022-12-19 03:42 出处:网络
I am using Ubuntu 9 and I start two nodes with: erl -name node1 -setcookie demo and erl -name node2 -setcookie demo

I am using Ubuntu 9 and I start two nodes with:

erl -name node1 -setcookie demo

and

erl -name node2 -setcookie demo

开发者_C百科yet when I run "nodes()" the nodes do not see each other and it returns an empty list. Anyone know why?


Because they are not connected unless they communicate with each other, e.g. by one pinging the other:

(node1@<host>)> net_adm:ping(node2@<host>).

Note that if you checked the nodes with net_adm:names(), they would have been visible via epmd.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号