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