加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-15 21:45:46 所属栏目:安全 来源:网络整理
导读:我一直在努力连接到erlang节点而没有运气. 情况如下: 1)我在-sname n1的本地主机上运行了“-detached”erlang节点 2) $epmd -namesepmd: up and running on port 4369 with data:name n1 at port 53653 3)尝试连接 $erl -sname test -remsh n1...ERROR: She
我一直在努力连接到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次尝试中,我们在那里,很酷.

解决方法

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

其中hostname不是localhost,而是在计算机上输出’hostname’命令.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读