您的位置:首页 > 其它

[Erlang危机](4.2)Remsh

2014-11-09 10:05 141 查看

原创文章,转载请注明出处:服务器非业余研究http://blog.csdn.net/erlib 作者Sunface联系邮箱:cto@188.com

Remsh

There’s a mechanism entirely similar to the one available through the JCL mode, although invoked in a different manner. The entire JCL mode sequence can by bypassed by starting the shell as follows for long names: 还有一种类似于JCL模式的机制,只是两者的激活方式有所不同。JCL模式连接远程节点的操作序列可以使用下面这个加了remsh参数的启动命令直接绕过。
---------------------------------------------------------------------------------------
erl -name local@domain.name -remsh remote@domain.name

---------------------------------------------------------------------------------------
And as follows for short names:
 也可以使用短命名:
---------------------------------------------------------------------------------------
erl -sname local@domain -remsh remote@domain

---------------------------------------------------------------------------------------
All other Erlang arguments (such as -hidden and -setcookie $COOKIE) are also valid.
The underlying mechanisms are the same as when using JCL mode, but the initial shell is started remotely instead of locally (JCL is still local). ˆG remains the safest way to exit the remote shell. 其它的Erlang参数(比如:-hidden -setcookie $COOKIE)在这里也都是可以使用的。
 Remsh命令的底层机制和使用JCL模式是一样的,但启动后的节点是远程的,而JCL启动的节点是本地的,与此同时Ctrl+G仍然是退出远程shell的最安全方式。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  erlang