无法在Ubuntu 12.04上启动rabbitmq-server

前端之家收集整理的这篇文章主要介绍了无法在Ubuntu 12.04上启动rabbitmq-server前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我尝试在ubuntu-server 12.04上安装rabbitmq-server但是失败了.

然后我按照http://www.rabbitmq.com/install-debian.html中的指南添加apt源列表

但重新安装仍然有如下错误

$sudo aptitude install rabbitmq-server
...
Setting up rabbitmq-server (2.8.7-1) ...
 * Starting message broker rabbitmq-server
 * Failed - check /var/log/rabbitmq/startup_\{log,_err\}
   ...fail!
invoke-rc.d: initscript rabbitmq-server,action "start" Failed.
dpkg: error processing rabbitmq-server (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package Failed to install.  Trying to recover:
Setting up rabbitmq-server (2.8.7-1) ...
 * Starting message broker rabbitmq-server
 * Failed - check /var/log/rabbitmq/startup_\{log,action "start" Failed.
dpkg: error processing rabbitmq-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 rabbitmq-server

错误日志似乎没有显示任何有用的东西:

# startup_err shows this
Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})

# startup_log shows this
{error_logger,{{2012,10,10},{22,31,54}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,epmd_close}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},3},init_node,2},init,{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}
{error_logger,crash_report,[[{initial_call,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,badarg},[{gen_server,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,{links,[#Port<0.90>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,511}],[]]}
{error_logger,supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfargs,start_link,[[rabbitmqprelaunch18417,shortnames]]}},{restart_type,permanent},2000},{child_type,worker}]}]}
{error_logger,kernel_sup}},shutdown},net_sup},{erl_distribution,[]}},infinity},supervisor}]}]}
{error_logger,std_info,[{application,kernel},{exited,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,[]]}}}"}

我用谷歌搜索了一段时间但没有任何用处.

互联网上的一个解决方案是确保主机名可ping,但我的/ etc / hosts已经在这个行上面了:

127.0.0.1    localhost    myserver

关于如何启动rabbitmq-server的任何建议?

我安装rabbitmq-server时遇到了这个问题,而我正在安装厨师.
我的工作和解决这个问题的方法如下.
$sudo vim /etc/hosts

然后加

$127.0.0.1 <hostname>

这是您的主机名,如果不确定主机名,则运行以下命令:

$hostname

结果是您的主机名.只需将其添加到/ etc / hosts,然后运行:

$sudo service rabbitmq-server start

它开始了.这对我有用.感谢您抽出时间阅读.:)

猜你在找的Ubuntu相关文章