开发者

Nodes not talking

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜