Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Hello World" not work for rabbitmq

Tags:

rabbitmq

I am new to rabbitmq, but for some (unknown) reason, the "hello world" program does not work for me. The send.py and receive.py are simply copied and pasted from the tutorial page:

http://www.rabbitmq.com/tutorials/tutorial-one-python.html

rabbitmq is installed using "yum" on a RHEL 6. Python version is 2.6. I started the server using

$ service rabbitmq-server start

and it prints "SUCCESS".

There is no error or warning messages by running send.py and receive.py:

$ python send.py
 [x] Sent 'Hello World!'

$ python receive.py
 [*] Waiting for messages. To exit press CTRL+C

Then it never prints "Hello World!".

What's wrong with it?

like image 794
fanchyna Avatar asked May 14 '12 17:05

fanchyna


1 Answers

First enable the management console

sudo rabbitmq-plugins enable rabbitmq_management

Then open the browser

http://localhost:55672

Login with: guest/guest

In my case it was the memory ( under 2 Giga ) and the message "The disk free space alarm for this node has gone off. It will block incoming network traffic until the amount of free space exceeds the limit."

Edit the file /etc/rabbitmq/rabbitmq.config as follows:

 [
    {rabbit, [{disk_free_limit, {mem_relative, 0.1}}]}
 ]

Now restart rabbit service:

service rabbitmq-server stop
service rabbitmq-server start
like image 162
johnlemon Avatar answered Oct 13 '22 12:10

johnlemon