二郎。连接到本地节点:***错误:Shell进程已终止

时间:2012-02-11 07:43:21

标签: erlang

我一直在努力连接到erlang节点并且没有运气。 情况如下:

1)我在-sname n1

的本地主机上运行了“-detached”erlang节点

2)

$ epmd -names
epmd: up and running on port 4369 with data:
name n1 at port 53653

3)尝试连接

$ erl -sname test -remsh n1
...
ERROR: Shell process terminated! (^G to start new job)


$ erl -sname test -setcookie *COOKIE* -remsh n1
...
ERROR: Shell process terminated! (^G to start new job)


$ erl -sname test -setcookie *COOKIE* -remsh n1@localhost
...
ERROR: Shell process terminated! (^G to start new job)

我还应该尝试什么?

UPD:

关注@Odobenus Rosmarus建议:

$ hostname
server.domain.com
$ erl -sname test -setcookie *COOKIE* -remsh n1@server.domain.com
** System NOT running to use fully qualified hostnames **
** Hostname server.domain.com is illegal **
** ERROR: Shell process terminated! (^G to start new job) **

另一个盲目尝试(扔掉fqdn的一部分):

$ erl -sname test -setcookie *COOKIE* -remsh n1@server
Eshell V5.8.5  (abort with ^G)
(ipspy@server)1>

好的,我们在5次尝试中,很酷。

1 个答案:

答案 0 :(得分:7)

erl -sname test -setcookie *COOKIE* -remsh n1@hostname

其中 hostname 不是localhost,而是输出' hostname'在您的计算机上执行命令。