Experimental environment: The company intranet 2 machines, one is my own notebook (machine name Nb11), one is the company's server (machine name ws100), are Win7 system
(Found a strange problem, shell access to the command, Windows, only Werl.exe support, Erl.exe cannot be adjusted.) Start the ERL console on the command line, not supported)
A. Start the Erl node on 2 machines first, respectively
1. Start in the notebook first
Command input
Erl-same Master-setcookie Test
After the machine starts the Erl, a prompt appears
[[Email protected]]1>
2. Start the server
Command input
Erl-same Sa1-setcookie Test
After the machine starts the Erl, a prompt appears
[[Email protected]]1>
B then how to log on to the workstation from my node
1. Under the previous Erl console, press Ctrl+g
User Switch command appears
-
then enter r "[email protected]" press ENTER
In press J
Machine Display node:
1 {Shell,start,[init]}
protected],shell,start,[{[email]}
In the * is the default can be connected node, of which 1 lines, is your current master node
Press C to connect
Then the machine replies.
Eshell V6.1 (abort with ^g)
([email protected]) 1>
This means you're already on the server node.
=========== Extension description ====================
Under a real cluster, the node shown earlier may be a long list of nodes.
It's probably
1 {Shell,start,[init]}
2 {[Email protected],shell,start,[]}
3 {[Email protected],shell,start,[]}
4 {[Email protected],shell,start,[]}
5 {[Email protected],shell,start,[]}
6* {[Email protected],shell,start,[]}
If you want to connect to the third node, just enter C 6 to return to the car on the line.
============================
C how to go back to the local node
First CTRL +G
Ann J
Machine display
1 {Shell,start,[init]}
[Master@shawin7nb381,shell,start,[]}
Direct input to C will
How to use the shell of Erlang to access a remote node