2009-11-29 4 views

답변

3
  1. -sname [email protected]$HOST (또는 -name [email protected]$FULLHOST는) 다음 코드를 사용하여 mochiweb 기반 프로젝트
  2. 만들기 파일 debug.shstart.sherl 호출의 매개 변수에 있는지 확인하십시오

    #!/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

감사합니다. 그것은 처음에는 작동하지 않았고/c 또한 일치시키기 위해 setcookie를해야했지만 그 이후에 작동했습니다. 고마워요. – ewindsor

+0

쿠키에 대한 좋은 지적입니다. '~/.erlang.cookie' 파일의 쿠키를 사용하고 있으므로'-setcookie'에 대해서 잊어 버렸습니다. :) – gleber

+0

쿠키에 대한 비트를 포함하도록 답변을 업데이트했습니다 – gleber