Header Ads Widget

Running RabbitMQ in Terminal (Raspberry Pi)


Installation instructions for RabbitMQ Server on my Pi

 
With RabbitMQ installed, I’m now ready to start the rabbitmq-server daemon and get RabbitMQ up and running. First, I have to enable the daemon by running the command and then start it by running the command. The last command listed below is enabling the RabbitMQ Management Portal, which is very useful and I definitely want that in order to monitor my cluster health, connections, exchanges, queues, policies, etc. It comes as a plugin, so I only have to enable it as it seems.
 

please type:


sudo apt-get install rabbitmq-server

sudo systemctl enable rabbitmq-server

 

sudo systemctl start rabbitmq-server
 

sudo rabbitmq-plugins enable rabbitmq_management
 

sudo rabbitmqctl add_user test test
 

sudo rabbitmqctl set_user_tags test administrator
 

sudo rabbitmqctl set_permissions -p / test ".*" ".*" ".*"


Accessing management portal in the local network

But how am I going to access the management portal if my RaspberryPi OS doesn’t support desktop features? The answer to this question is quite simple, the same way I was able to control my Raspberry Pi from my Windows 10 PC. Remotely! However, the guest/guest credentials don’t work outside the local machine, so I have to create a new user in order to access the management portal remotely. Below, I’ve included a snippet to create a new user test with password test (not very imaginative huh?) and assign it an administrator role.

please type:


sudo rabbitmqctl add_user test test
 

sudo rabbitmqctl set_user_tags test administrator
 

sudo rabbitmqctl set_permissions -p / test ".*" ".*" ".*"

 

With the above completed, I can now test if that works, by accessing the management portal from my PC. The master node is locat
ed at 192.168.0.24 on local network and the port for management portal is 15672.

Enregistrer un commentaire

0 Commentaires