Erlang nodes can't see each other

后端 未结 3 443
太阳男子
太阳男子 2021-01-05 13:29

I am new to Erlang and trying to set two nodes on my laptop.

In one terminal I type:

eli@elimayost: ~/erlang_apps> erl -sname foo -setcookie secre         


        
3条回答
  •  感情败类
    2021-01-05 13:53

    Try starting the nodes like this:

    eli@elimayost: ~/erlang_apps> erl -sname foo@elimayost -setcookie secret
    eli@elimayost: ~/erlang_apps> erl -sname bar@elimayost -setcookie secret
    

    Then ping them like you did before.

    (foo@elimayost)1> net_adm:ping(bar@elimayost).
    

    If that doesn't work for you, try pinging the node from itself.

提交回复
热议问题