2009-11-29 98 views

回答

3
  1. 确保-sname [email protected]$HOST(或-name [email protected]$FULLHOST)存在于erl调用的参数在基于了Mochiweb项目
  2. 创建文件debug.sh用下面的代码的start.sh

    #!/bin/bash 
    erl -sname [email protected]$HOST -remsh [email protected]$HOST 
    

确保不要在脚本中混合使用snamename,因为nodes with short names can not communicate with nodes with full names (and vice versa) 。此外请确保通过-setcookie参数erl或通过~/.erlang.cookie文件使用the same cookie on both nodes

当然,你必须用适当的值替换$ NODE,$ HOST和$ FULLHOST。

+0

太棒了,谢谢!它在第一个B/C不起作用,我不得不安排匹配,但它在那之后起作用。非常感谢 – ewindsor 2009-11-30 21:06:17

+0

关于cookie的好处。我从'〜/ .erlang.cookie'文件中使用cookie,所以忘记了'-setcookie'的东西:) – gleber 2009-12-01 10:37:23

+0

我已经更新了我的答案,包括关于cookie的位 – gleber 2009-12-01 10:39:47