V
Size: a a a
V
V
TH
VS
TH
TH
СИ
VS
СИ
VS
erl -sname n1@localhost
erl -sname n2@localhost
Erlang/OTP 21 [erts-10.3] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1]
Eshell V10.3 (abort with ^G)
(n2@localhost)1> nodes().
[]
(n2@localhost)2> net_adm:ping(n1@localhost).
pong
(n2@localhost)3>
СИ
erl -sname n1@localhost
erl -sname n2@localhost
Erlang/OTP 21 [erts-10.3] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1]
Eshell V10.3 (abort with ^G)
(n2@localhost)1> nodes().
[]
(n2@localhost)2> net_adm:ping(n1@localhost).
pong
(n2@localhost)3>
AB
AB
AB
(bbb@localhost)8> rpc:call(aaa@localhost, erlang, node, [], 1000).
aaa@localhost
AB
СИ
A
erl -sname test@foo
erl -sname test2@foo2
(test2@foo2)1> inet_db:add_host({127,0,0,1}, ["foo"]).
ok
(test2@foo2)3> inet_db:set_lookup([file, dns, native]).
ok
(test2@foo2)4> net_adm:ping(test@foo).
pong
СИ
erl -sname test@foo
erl -sname test2@foo2
(test2@foo2)1> inet_db:add_host({127,0,0,1}, ["foo"]).
ok
(test2@foo2)3> inet_db:set_lookup([file, dns, native]).
ok
(test2@foo2)4> net_adm:ping(test@foo).
pong
erl -sname n2 -noshell -eval "io:format(\"~p~n\", [net_adm:ping(n1@$(head -1 /etc/hostname))]), init:stop()."
DZ
erl -sname n2 -noshell -eval "io:format(\"~p~n\", [net_adm:ping(n1@$(head -1 /etc/hostname))]), init:stop()."