【问题标题】:Erlang. Connecting to local node: *** ERROR: Shell process terminated二郎。连接到本地节点:*** 错误:Shell 进程终止
【发布时间】: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


    【解决方案1】:
    erl -sname test -setcookie *COOKIE* -remsh n1@hostname
    

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

    【讨论】:

      猜你喜欢
      • 2011-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-27
      • 2016-09-29
      • 1970-01-01
      • 2020-04-21
      • 1970-01-01
      相关资源
      最近更新 更多