[英]What is the point of Spawn(Node, Fun) on erlang, if Node has to have the same module loadable as a client node?
[英]client on one node server on other node but on same host in erlang language
這是我在Erlang shell中執行時混淆的代碼所以請解釋一下
在第一個終端,我們將終端名稱設置為gandalf
erl -sname gandalf
(gandalf@localhost) 1> kvs:start().
在第二終端終端名稱是bilbo
erl -sname bilbo
(bilbo@localhost) 1> rpc:call(gandalf@localhost, kvs,store, [weather, fine]).
但問題是當我在各自的終端執行上面的代碼代碼沒有被執行所以請解釋我,我還有一個疑問是必須設置cookie?
你在rpc:call之前連接節點嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.