<div style="font-family:Verdana;font-size:14px;color:#000;"><DIV>i had tried "rabbitmqctl -n rabbit@Fanqu-WorkStation status" before, it didn't work!</DIV><div style="font:Verdana normal 14px;color:#000;padding:8px 0px;"><div> </div><div> </div><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Marek Majkowski"<majek04@gmail.com>; </div><div><b>发送时间:</b> 2011年8月4日(星期四) 晚上7:28</div><div><b>收件人:</b> "平常心态"<214575002@qq.com>; </div><div><b >抄送:</b> "rabbitmq-discuss"<rabbitmq-discuss@lists.rabbitmq.com>; </div><div><b>主题:</b> Re: [rabbitmq-discuss] Error: unable to connect to node rabbit@dev: nodedown</div></div><div> </div>2011/8/4 平常心态 <<a href="mailto:214575002@qq.com" target="_blank">214575002@qq<wbr>.com</a>>:<br>> hi, all<br>> some error come up when I want to get some status of my rabbitmq-server<br>> the site <a href="http://www.rabbitmq.com/install.html#troubleshooting?said" target="_blank">http://www.r<wbr>abbitmq.com/<wbr>install.html<wbr>#troubleshoo<wbr>ting said</a> that<br>> I should make sure the erlang cookies are the same, but I am new to erlang<br>> ,I don't know how to make sure.<br>> below is the output,<br>> /------------------------------------rabbitmqctl<br>> status-------------------------------/<br>> dev@dev:~/source/rabbitmq/sbin$ ./rabbitmqctl status<br>> Status of node rabbit@dev ...<br>> Error: unable to connect to node rabbit@dev: nodedown<br>> =ERROR REPORT==== 4-Aug-2011::09:29:10 ===<br>> Error in process <0.36.0> on node 'rabbitmqctl14242@dev' with exit value:<br>> {badarg,[{erlang,list_to_existing_atom,["rabbit@Fanqu-WorkStation"]},{dist_util,recv_challenge,1},{dist_util,handshake_we_started,1}]}<br>> diagnostics:<br>> - nodes and their ports on dev: [{rabbit,56129},{rabbitmqctl14242,38839}]<br>> - current node: rabbitmqctl14242@dev<br>> - current node home dir: /home/dev<br>> - current node cookie hash: t6gCD5tZzOtYsVS32gQgwA==<br>> /------------------------------------hostname<br>> -s-------------------------------/<br>> dev@dev:~/source/rabbitmq/sbin$ hostname -s<br>> dev<br>> dev@dev:~/source/rabbitmq/sbin$ cat /etc/hosts<br>> 127.0.0.1 localhost<br>> 127.0.1.1 dev<br>> /------------------------------------ps aux | grep beam<br>> -------------------------------/<br>> dev@dev:~/source/rabbitmq/sbin$ ps aux | grep beam<br>> dev 21051 0.0 0.3 56980 8080 ? Sl Jul26 3:44<br>> /usr/lib/erlang/erts-5.7.4/bin/beam.smp -W w -K true -A30 -P 1048576 --<br>> -root /usr/lib/erlang -progname erl -- -home /home/dev -- -noshell -noinput<br>> -sname rabbit@Fanqu-WorkStation -boot<br>> /home/dev/rabbitmq/data/rabbit@Fanqu-WorkStation-plugins-expand/rabbit<br>> -kernel inet_default_listen_options [{nodelay,true}] -kernel<br>> inet_default_connect_options [{nodelay,true}] -sasl errlog_type error<br>> -kernel error_logger<br>> {file,"/home/dev/rabbitmq/log/<a href="mailto:rabbit@Fanqu-WorkStation.log" target="_blank">rabbit@Fanqu<wbr>-WorkStation<wbr>.log</a>"} -sasl<br>> sasl_error_logger<br>> {file,"/home/dev/rabbitmq/log/<a href="mailto:rabbit@Fanqu-WorkStation-sasl.log" target="_blank">rabbit@Fanqu<wbr>-WorkStation<wbr>-sasl.log</a>"} -os_mon<br>> start_cpu_sup true -os_mon start_disksup false -os_mon start_memsup false<br>> -mnesia dir "/home/dev/rabbitmq/data/rabbit@Fanqu-WorkStation" -noshell<br>> -noinput<br>> dev 30911 0.0 0.0 3552 916 pts/2 S+ 09:40 0:00 grep<br>> --color=auto beam<br><br>You seem to have rabbit running as "rabbit@Fanqu-WorkStation" while your<br>rabbitmqctl asks for "rabbit@dev".<br><br>If "Fanqu-WorkStation" is a proper network name, you should be able to<br>do "rabbitmqctl -n rabbit@Fanqu-WorkStation status"<br><br>Cheers,<br> Marek<br>                
                                                                                                                        
                                <!-- --><style></style></div></div>