2009-11-29 101 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