Create vHost on Windows RabbitMQ node using command line

Ebeid ElSayed picture Ebeid ElSayed · Sep 16, 2016 · Viewed 9.6k times · Source

I have a RabbitMQ node on windows operating system. I want to create vhost on that node from command line of using a script with minimal pre-requisites.

EDIT: I tried to use the rabbitmqctl add_vhost but I always get an error.

enter image description here

Answer

Gabriele Santomaggio picture Gabriele Santomaggio · Sep 16, 2016
rabbitmqctl add_vhost my_vhost

and

rabbitmqctl set_permissions -p my_vhost guest ".*" ".*" ".*"

I suggest to read this: https://www.rabbitmq.com/man/rabbitmqctl.1.man.html

So you have another error, about the node down read here RabbitMQ has Nodedown Error