2016-02-22 40 views
0

我一直試圖在CentOS 6中啓動RabbitMQ服務器,但不幸的是,當啓用STOMP插件時,它會拋出以下錯誤消息。無法啓動RabbitMQ STOMP插件?

我試圖運行:RabbitMQ的3.6.0

我知道,61613已被使用。 但我不知道如何更改或配置它。

是否有一些快速和骯髒的方式來殺死這個並重新啓動服務器? 當然,我不想禁用該插件。

BOOT FAILED 
 
=========== 
 

 
Error description: 
 
    {could_not_start,rabbitmq_stomp, 
 
     {{undef, 
 
      [{rabbit_networking,tcp_listener_spec, 
 
       [rabbit_stomp_listener_sup, 
 
        {{0,0,0,0,0,0,0,0},61613,inet6}, 
 
        [{backlog,128},{nodelay,true}], 
 
        ranch_tcp,rabbit_stomp_client_sup, 
 
        {stomp_configuration,"guest","guest",false,false}, 
 
        stomp,"STOMP TCP Listener"], 
 
       []}, 
 
      {rabbit_stomp_sup,'-listener_specs/3-lc$^1/1-1-',4, 
 
       [{file,"src/rabbit_stomp_sup.erl"},{line,44}]}, 
 
      {rabbit_stomp_sup,init,1, 
 
       [{file,"src/rabbit_stomp_sup.erl"},{line,38}]}, 
 
      {supervisor,init,1,[{file,"supervisor.erl"},{line,272}]}, 
 
      {gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]}, 
 
      {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}, 
 
     {rabbit_stomp,start,[normal,[]]}}} 
 

 
{"init terminating in do_boot",{could_not_start,rabbitmq_stomp,{{undef,[{rabbit_networking,tcp_listener_spec,[rabbit_stomp_listener_sup,{{0,0,0,0,0,0,0,0},61613,inet6},[{backlog,128},{nodelay,true}],ranch_tcp,rabbit_stomp_client_sup,{stomp_configuration,"guest","guest",false,false},stomp,"STOMP TCP Listener"],[]},{rabbit_stomp_sup,'-listener_specs/3-lc$^1/1-1-',4,[{file,"src/rabbit_stomp_sup.erl"},{line,44}]},{rabbit_stomp_sup,init,1,[{file,"src/rabbit_stomp_sup.erl"},{line,38}]},{supervisor,init,1,[{file,"supervisor.erl"},{line,272}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,328}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]},{rabbit_stomp,start,[normal,[]]}}}}

根據RabbitMQ的用戶羣,這竟然是在RabbitMQ的服務器本身...所以這個修復程序,你可以切換或

錯誤給3.6.1.RC2一試: https://groups.google.com/forum/#!searchin/rabbitmq-users/RC2/rabbitmq-users/QmB-YLo89d0/U1GoGYpmAQAJ

我試着用3.6.1.RC2,它解決了這個問題。

回答

0

https://www.rabbitmq.com/stomp.html

編輯配置文件,包含一個tcp_listeners變量爲rabbitmq_stomp應用

例如,改變監聽端口12345看起來像一個完整的配置文件:

[ 
    {rabbitmq_stomp, [{tcp_listeners, [12345]}]} 
]. 

,而其中一個改變聽者只監聽本地主機(IPv4和IPv6)看起來像:

[ 
    {rabbitmq_stomp, [{tcp_listeners, [{"127.0.0.1", 61613}, 
            {"::1",  61613}]}]} 
]. 
+0

這個答案根本沒有幫助。我已經嘗試了幾次使用上面的語法更改rabbitmq.config文件,但它會引發相同的錯誤消息。 – AppKeto

+0

你的意思是你指定了一個不同的端口,但它仍然使用默認的'61613'並引發錯誤?你能發佈你的配置文件的內容嗎? – Amiramix

+0

這實際上是一個RabbitMQ-Server 3.6.0中的一個bug,在CentOS 6中啓用了stomp。 – AppKeto

0

至於建議的Amiramix(此評論線程),我回答我的問題。

在CentOS 6中,我發現了一個STOMP插件的錯誤,它引發了上面提到的問題中提到的錯誤堆棧。然而,從官方的rabbitmq貢獻者中​​,我得到了嘗試更新版本的rabbitmq-server的響應。

所以我試圖用3.6.1.RC2,它解決了這個問題(在這個版本中大約有35 bug修復和小改進相比,3.6.0)

https://groups.google.com/forum/#!searchin/rabbitmq-users/RC2/rabbitmq-users/QmB-YLo89d0/U1GoGYpmAQAJ

最新的RabbitMQ服務器發佈,請嘗試here