os是Mac os獅子。 如果命令是'erl -name aa'
和'erl -name bb'
,則兩個節點之間的長名稱連接正常。erlang奴隸:開始/ 2連接拒絕
但是,如果使用從站:
([email protected])33> slave:start('yus-iMac.local',bb).
connect to address 192.168.64.1: Connection refused
Trying 192.168.213.1...
connect to address 192.168.213.1: Connection refused
Trying 192.168.0.101...
connect to address 192.168.0.101: Connection refused
Trying fe80::654:53ff:fe0e:b2ee%en1...
connect to address fe80::654:53ff:fe0e:b2ee%en1: Connection refused
Trying 192.168.64.1...
connect to address 192.168.64.1: Connection refused
Trying 192.168.213.1...
connect to address 192.168.213.1: Connection refused
Trying 192.168.0.101...
connect to address 192.168.0.101: Connection refused
Trying fe80::654:53ff:fe0e:b2ee%en1...
connect to address fe80::654:53ff:fe0e:b2ee%en1: Connection refused
Trying 192.168.64.1...
connect to address 192.168.64.1: Connection refused
Trying 192.168.213.1...
connect to address 192.168.213.1: Connection refused
Trying 192.168.0.101...
connect to address 192.168.0.101: Connection refused
Trying fe80::654:53ff:fe0e:b2ee%en1...
connect to address fe80::654:53ff:fe0e:b2ee%en1: Connection refused
Trying 192.168.64.1...
connect to address 192.168.64.1: Connection refused
Trying 192.168.213.1...
connect to address 192.168.213.1: Connection refused
Trying 192.168.0.101...
connect to address 192.168.0.101: Connection refused
Trying fe80::654:53ff:fe0e:b2ee%en1...
connect to address fe80::654:53ff:fe0e:b2ee%en1: Connection refused
Trying 192.168.64.1...
connect to address 192.168.64.1: Connection refused
Trying 192.168.213.1...
connect to address 192.168.213.1: Connection refused
Trying 192.168.0.101...
connect to address 192.168.0.101: Connection refused
Trying fe80::654:53ff:fe0e:b2ee%en1...
connect to address fe80::654:53ff:fe0e:b2ee%en1: Connection refused
Trying 192.168.64.1...
connect to address 192.168.64.1: Connection refused
Trying 192.168.213.1...
connect to address 192.168.213.1: Connection refused
Trying 192.168.0.101...
connect to address 192.168.0.101: Connection refused
Trying fe80::654:53ff:fe0e:b2ee%en1...
yus-imac.local: Connection refused
{error,timeout}
的LONGNAME測試是folows:
yus-iMac:~ yuchen$ erl -name cc
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9 (abort with ^G)
([email protected])1>
yus-iMac:~ yuchen$ erl -name dd
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9 (abort with ^G)
([email protected])2> net_adm:ping('[email protected]').
pong
([email protected])3>
您聲明:「兩個節點之間的長名稱連接正常」。你是怎麼嘗試的? – 2012-03-28 11:03:34
我在前一篇文章中添加了長名稱測試。 – 2012-03-28 11:13:04