谁能告诉我这是怎么可能的:
$ 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'
答案 0 :(得分:1)
这是由于语法错误;您将-setcookie
拼写为-setcoookie
,并加上了额外的'o'
。使用正确的拼写,您将获得所需的结果:
$ erl -sname n1 -setcookie guitar
...
(n1@host)1> erlang:get_cookie().
guitar