Erlang Node Interoperability View

Source: Internet
Author: User

In the LAN, the general use of short node name to complete the short nodes of the whole unicom.
One of the prerequisites for full unicom is that the cookie is identical and the cookie is recorded in a file.
Two Erlang nodes on the same physical machine can be fully connected without additional configuration.
For Erlang nodes that are not on the same physical machine, you need to configure a cookie.
Execute erl-sname [email protected]on the command line of one of the physical machines and execute erl-sname on the shell of another physical machine [email protected]
Perform Auth:get_cookie () on the shell, respectively, to see if it is the same, and if different, set it to the same by Auth:set_cookie (node (), ' Yourcookie ').
Then execute net_adm:ping (othernode), Othernode is [email protected] or [email protected].
If the execution result is pong, it is successful and can be viewed through nodes ().

Erlang Node Interoperability View

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.