【发布时间】:2015-08-06 03:27:08
【问题描述】:
我一直在努力连接到 erlang 节点并且没有运气。 情况如下:
1) 我在本地主机上运行“-detached”erlang 节点,-sname n1
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 次尝试,我们就成功了,很酷。
【问题讨论】:
标签: erlang