I have installed & setup the Rabbitmq on Centos remote server. Later I created an file "rabbitmq.config" and added the line
[{rabbit, [{loopback_users, []}]}]
and then restarted the rabbitmq server. Again tried to login the rabbitmq management web interface from my local machine using the guest credentials, but getting
login failed
error message.What is the proper way to empty the loopback user settings for Rabbitmq in Centos.
Open the RabbitMQ management console, http://localhost:15672 . Login as a guest. Enter guest as the Username and Password. Note: The default user โguestโ is an administrative user and its login credentials are published on the official RabbitMQ web site.
If you're running Rabbit MQ locally you can use localhost in place of the host. Opening the URL in the browser, you'll see a login page, enter guest for both username and password to access the administrative parts. Yay! โ๏ธ That's it, start Rabbiting your MQs ๐.
Create new RabbitMQ user and set permissions To create a new RabbitMQ user to access the RabbitMQ server remotely: Open a browser and navigate to http://localhost:15672/. The RabbitMQ Management login screen displays. Log into RabbitMQ using guest as both the username and password.
Different users can be granted access only to specific virtual hosts. Their permissions in each virtual hosts also can be limited. RabbitMQ supports two major authentication mechanisms as well as several authentication and authorisation backends. Password-based authentication has a companion guide.
First of all connect to your rabbitmq server machine using ssh client so as to be able to run rabbitmqctl
(like puTTY) & get into the sbin directory of rabbit installation
"/"
)$ rabbitmqctl add_user yourName yourPass
$ rabbitmqctl set_permissions -p / yourName ".*" ".*" ".*"
$ rabbitmqctl set_user_tags yourName administrator
... and you are ready to login to your rabbitmq management gui using yourName
and yourPass
from any browser by pointing it to http://"*********":15672
where *****
is your server IP
hope it helps...
:-)
There is an example config file, on centos do:
cp /usr/share/doc/rabbitmq-server-3.4.2/rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
Find and remove comments (and comma):
{loopback_users, []}
Then, stop rabbitmq:
rabbitmqctl stop
Now start the server:
service rabbitmq-server start
Now user "guest" can access from anywhere.
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