[英]client on one node server on other node but on same host in erlang language
Here is the code iam confused when i was executing in Erlang shell so please explain me 这是我在Erlang shell中执行时混淆的代码所以请解释一下
In first terminal we set the terminal name as gandalf 在第一个终端,我们将终端名称设置为gandalf
erl -sname gandalf
(gandalf@localhost) 1> kvs:start().
In second terminal terminal name is bilbo 在第二终端终端名称是bilbo
erl -sname bilbo
(bilbo@localhost) 1> rpc:call(gandalf@localhost, kvs,store, [weather, fine]).
But the problem is when i was executing the above code in respective terminals code was not getting executed so please explain me and i have one more doubt is it compulsory to set cookies?? 但问题是当我在各自的终端执行上面的代码代码没有被执行所以请解释我,我还有一个疑问是必须设置cookie?
你在rpc:call之前连接节点吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.