【问题标题】:Can't connect two nodes on same machine: cookie problem无法连接同一台机器上的两个节点:cookie 问题
【发布时间】:2019-08-15 11:00:26
【问题描述】:

谁能告诉我这是怎么可能的:

$ erl -sname n1 -setcoookie guitar
Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.3  (abort with ^G)

(n1@My-MacBook-Pro-2)1> erlang:get_cookie().
'TUUSVNDBMEWLOXSGZUAO'

【问题讨论】:

  • 因为您将-setcookie 拼错为-setcoookie
  • 圣诞快乐!谢谢参观!您可以发表您的评论作为答案吗?

标签: erlang distributed


【解决方案1】:

这是由于语法错误;您将 -setcookie 拼错为 -setcoookie,并加上了一个额外的 'o'。使用正确的拼写,你会得到想要的结果:

$ erl -sname n1 -setcookie guitar
...
(n1@host)1> erlang:get_cookie().
guitar

【讨论】:

  • 感谢您帮助可怜的灵魂。我的键盘也谢谢你!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-03-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-08-31
  • 1970-01-01
相关资源
最近更新 更多