Reputation: 7506
I would like to start a cluster node on a dedicated server.
However When I start it with this command line :
erl -pa ebin -name myserver -setcookie abc
It starts with a certain domain name:
Erlang R15B (erts-5.9) [source] [64-bit] [smp:16:16] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9 (abort with ^G)
([email protected])1>
I would like it to start on another domain name like : [email protected]
Upvotes: 0
Views: 184
Reputation: 2723
you can specify the domain as part of -name
> erl -pa ebin -name [email protected] -setcookie abc
Erlang R15B (erts-5.9) [source] [64-bit] [smp:4:4] [async-threads:0] [kernel-poll:false]
...
([email protected])1> node().
'[email protected]'
Upvotes: 4