Erlang:以编程方式启动远程节点 [英] Erlang: starting a remote node programmatically

查看:136
本文介绍了Erlang:以编程方式启动远程节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道节点可以从shell启动。我正在寻找的是一种从模块内启动远程节点的方法。我已经搜索过,但一直没有找到任何东西。



任何帮助都不胜感激。

解决方案

这个池级别较低,是从属(3)模块。池建立在从站的功能之上。



使用 slave:start 启动一个新的从站。

您还应该在命令行中指定 -rsh ssh



所以使用池,如果你需要它提供的那种功能,如果你需要不同的东西,你可以自己建立自己的奴隶。


I am aware that nodes can be started from the shell. What I am looking for is a way to start a remote node from within a module. I have searched, but have been able to find nothing.

Any help is appreciated.

解决方案

A bit more low level that pool is the slave(3) module. Pool builds upon the functionality in slave.

Use slave:start to start a new slave.

You should probably also specify -rsh ssh on the command-line.

So use pool if you need the kind of functionality it offers, if you need something different you can build it yourself out of slave.

这篇关于Erlang:以编程方式启动远程节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆