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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With