How to create new node? i try some like here how to run this erlang example and find the same in tutorial http://www.erlang.org/doc/reference_manual/distributed.html when i write
% erl -name dilbert
my compiler behaves i forgot '.' at the end. Of course i try end, result the same. Any ideas?
The command erl -name dilbert
is not meant to be typed into the Erlang shell; it's the command you run to start a distributed node instead of plain erl
.
(If you really want to turn a running node into a distributed node, you can use net_kernel:start/1 , but I've never had a reason to do that except in tests.)
In Linux, you can type erl -name dilbert
in the terminal . In Windows you run it in CMD .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.