Last active
December 19, 2015 01:19
-
-
Save ztmr/5874778 to your computer and use it in GitHub Desktop.
Erlang network boot example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmr@dev:~$ erl -sname boot | |
Erlang R15B (erts-5.9) [source] [64-bit] [smp:2:2] [async-threads:0] [kernel-poll:false] | |
Eshell V5.9 (abort with ^G) | |
(boot@dev)1> | |
(boot@dev)1> | |
(boot@dev)1> erlang:get_cookie(). | |
'HAKAZNCDECSZGWFBJSGC' | |
(boot@dev)2> | |
(boot@dev)2> | |
(boot@dev)2> erl_boot_server:start (['10.4.9.6','10.4.6.12','127.0.0.1']). | |
{ok,<0.43.0>} | |
(boot@dev)3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmr@gersemi:~$ erl -sname slave -hosts 10.4.6.12 -id slave -setcookie HAKAZNCDECSZGWFBJSGC -loader inet | |
Erlang R15B (erts-5.9) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false] | |
Eshell V5.9 (abort with ^G) | |
(slave@gersemi)1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment