How to use the shell of Erlang to access a remote node

Source: Internet
Author: User
Tags setcookie

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.