<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>It failed as following:<br><br>[root@game-01 otp_src_R15B01]# erl -sname rabbit@`env hostname`<br>{error_logger,{{2012,7,10},{16,40,48}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,epmd_close}},[{inet_tcp_dist,listen,1,[{file,"inet_tcp_dist.erl"},{line,70}]},{net_kernel,start_protos,4,[{file,"net_kernel.erl"},{line,1314}]},{net_kernel,start_protos,3,[{file,"net_kernel.erl"},{line,1307}]},{net_kernel,init_node,2,[{file,"net_kernel.erl"},{line,1197}]},{net_kernel,init,1,[{file,"net_kernel.erl"},{line,357}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}]}<br>{error_logger,{{2012,7,10},{16,40,48}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,&lt;0.20.0&gt;},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,320}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}},{ancestors,[net
 _sup,kernel_sup,&lt;0.9.0&gt;]},{messages,[]},{links,[#Port&lt;0.54&gt;,&lt;0.17.0&gt;]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,499}],[]]}<br>{error_logger,{{2012,7,10},{16,40,48}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,{net_kernel,start_link,[['rabbit@game-01',shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}<br>{error_logger,{{2012,7,10},{16,40,48}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfargs,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}<br>{error_logger,{{2012,7,10},{16,40,48}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}<br>{"Kernel pid ter
 minated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}<br><br>Crash dump was written to: erl_crash.dump<br>Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})<br><br><br>BTW, epmd reported:<br>epmd: Tue Jul 10 16:42:48 2012: Non-local peer connected<br><br><br>He Bin<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Mon, 9 Jul 2012 13:16:18 +0100<br>From: tim@rabbitmq.com<br>To: rabbitmq-discuss@lists.rabbitmq.com<br>CC: hebin7611@hotmail.com<br>Subject: Re: [rabbitmq-discuss] Plz give me help about EPMD: Non-local peer connected<br><br>
  
    
  
  
    On 07/09/2012 11:50 AM, ºÎ±ó wrote:
    <blockquote cite="mid:SNT115-W15D1447EFB7C95C63ED064A6D30@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:\005fae\008f6f\0096c5\009ed1;}

--></style>
      <div dir="ltr">
        Hi Tim,<br>
        <br>
        `env hostname` returns game-01.<br>
      </div>
    </blockquote>
    <br>
    So does erl -sname rabbit@`env hostname` work then!?<br>
    <br></div>                                               </div></body>
</html>