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.
精彩评论