修改mq服务器ip,将外部IP地址绑定到Rabbit MQ服务器

KacieHouser

8

ip

rabbitmq

我有一个方框A,它上面有一个用户监听Rabbit MQ服务器

我有一个盒子B,它会向收听者发布一条消息

因此,只要在方框A和我的所有这一切启动Rabbit MQ服务器w /默认值它就可以正常工作.

端口5672上的默认值为host = 127.0.0.1,但是当我telnet box.a.ip.addy 5672从Box BI获取时:

Trying box.a.ip.addy...

telnet: connect to address box.a.ip.addy: No route to host

telnet: Unable to connect to remote host: No route to host

端口22上的telnet很好,我可以从Box B ssh到Box A.

所以我假设我需要更改RabbitMQ服务器使用的ip我发现这个:http://www.rabbitmq.com/configure.html我现在在文档说要使用的位置有一个配置文件,名称rabbitmq.config,它包含:

[

{rabbit, [{tcp_listeners, {"box.a.ip.addy", 5672}}]}

].

所以我停止了服务器,并再次启动了RabbitMQ服务器.它失败了.以下是错误日志中的错误.这有点过头了.(事实上​​大部分都是)

=ERROR REPORT==== 23-Aug-2011::14:49:36 ===

FAILED

Reason: {{case_clause,{{"box.a.ip.addy",5672}}},

[{rabbit_networking,'-boot_tcp/0-lc$^0/1-0-',1},

{rabbit_networking,boot_tcp,0},

{rabbit_networking,boot,0},

{rabbit,'-run_boot_step/1-lc$^1/1-1-',1},

{rabbit,run_boot_step,1},

{rabbit,'-start/2-lc$^0/1-0-',1},

{rabbit,start,2},

{application_master,start_it_old,4}]}

=INFO REPORT==== 23-Aug-2011::14:49:37 ===

application: rabbit

exited: {bad_return,{{rabbit,start,[normal,[]]},

{'EXIT',{rabbit,failure_during_boot}}}}

type: permanent

这里还有一些来自启动日志:

Erlang has closed

Error: {node_start_failed,normal}

^M

Crash dump was written to: erl_crash.dump^M

Kernel pid terminated (application_controller) ({application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot}}}}})^M

请帮忙

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值