2012-02-11 114 views
5

我一直在努力连接到erlang节点,没有运气。 这种状况下:Erlang。连接到本地节点:***错误:Shell进程终止

1)I与-sname n1

2本地主机上运行 “-detached” 二郎节点)

$ 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 [email protected] 
... 
ERROR: Shell process terminated! (^G to start new job) 

我还应该尝试什么?

UPD:

继@Odobenus Rosmarus建议:

$ hostname 
server.domain.com 
$ erl -sname test -setcookie *COOKIE* -remsh [email protected] 
** 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 [email protected] 
Eshell V5.8.5 (abort with ^G) 
([email protected])1> 

好了,在5次尝试,我们在那里,很酷。

回答

7
erl -sname test -setcookie *COOKIE* -remsh [email protected] 

其中主机名不是本地主机,但您的计算机上的“主机名”命令的输出。