0
我是wonderng如果有人知道的方式進入Mochiweb像ejabberd一樣,當你運行/ sbin/ejabberdctl調試?Mochiweb調試(像ejabberd調試)
我是wonderng如果有人知道的方式進入Mochiweb像ejabberd一樣,當你運行/ sbin/ejabberdctl調試?Mochiweb調試(像ejabberd調試)
-sname [email protected]$HOST
(或-name [email protected]$FULLHOST
)存在於erl
調用的參數在基於了Mochiweb項目創建文件debug.sh
用下面的代碼的start.sh
:
#!/bin/bash
erl -sname [email protected]$HOST -remsh [email protected]$HOST
確保不要在腳本中混合使用sname
和name
,因爲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。
太棒了,謝謝!它在第一個B/C不起作用,我不得不安排匹配,但它在那之後起作用。非常感謝 – ewindsor 2009-11-30 21:06:17
關於cookie的好處。我從'〜/ .erlang.cookie'文件中使用cookie,所以忘記了'-setcookie'的東西:) – gleber 2009-12-01 10:37:23
我已經更新了我的答案,包括關於cookie的位 – gleber 2009-12-01 10:39:47