我一直在努力连接到erlang节点而没有运气.情况如下:
1)我已经"-detached"运行在本地主机上的erlang节点 -sname n1
2)
$ epmd -names
epmd: up and running on port 4369 with data:
name n1 at port 53653
Run Code Online (Sandbox Code Playgroud)
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)
Run Code Online (Sandbox Code Playgroud)
我还应该尝试什么?
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) **
Run Code Online (Sandbox Code Playgroud)
另一个盲目尝试(扔掉fqdn的一部分):
$ erl -sname test -setcookie *COOKIE* -remsh n1@server
Eshell V5.8.5 (abort with ^G)
(ipspy@server)1>
Run Code Online (Sandbox Code Playgroud)
好的,在5次尝试中,我们在那里,很酷.
erl -sname test -setcookie *COOKIE* -remsh n1@hostname
Run Code Online (Sandbox Code Playgroud)
其中hostname不是localhost,而是在计算机上输出'hostname'命令.
| 归档时间: |
|
| 查看次数: |
5607 次 |
| 最近记录: |