After installation you must begin the server with init.d/rabbit..server start
- sudo rabbitmqctl stop_app
- sudo rabbitmqctlforce_reset
- sudo rabbitmqctl start_app
- sudo rabbitmqctl list_queues
- sudo rabbitmqctl add_user zinalat zinalat
- sudo rabbitmqctl set_user_tags zinalat administrator
- sudo rabbitmqctl add_vhost /
- sudo rabbitmqctl list_vhosts
- sudo rabbitmq-plugins enable --offline webmachine
- rabbitmq-plugins enable rabbitmq_management
- localhost:15672
- localhost:15672/cli
- A new created user should be added as access to a vhost this can be done via the admin of the management console.
- or sudo rabbitmqctl set_permissions -p myvhost myuser "." "." ".*"
$ rabbitmqctl list_queues name consumers
$ rabbitmqctl list_queues name memory
When having 2 celery in the same machine, make two different vhost
When reboot the machine will change the hostname, re-set it and then kill all the rabbit process, then re-init rabbit.
- Via admin
The ip is the internal ip of the VM.
[ {rabbit, [ {tcp_listeners, [{"127.0.0.1", 5672}, {"::1", 5672}, {"10.249.30.196", 5672} ]} ]} ].
sudo rabbitmqctl set_vm_memory_high_watermark 0.6 (o.6 = 60%)
if a node fails, take a look at how to restart it, also you can restart the rabbit server with
- sudo /etc/init.d/rabbitmq-server start but only when you NEED to do it, otherwise is better to use stop_app and start_aop