CentOS 7 installation Rabbitmq

wget https://bintray.com/rabbitmq-erlang/rpm/download_file?file_path=erlang%2F21%2Fel%2F7%2Fx86_64%2Ferlang-21.3.8.6-1.el7.x86_64.rpm

mv download_file?file_path=erlang%2F21%2Fel%2F7%2Fx86_64%2Ferlang-21.3.8.6-1.el7.x86_64.rpm erlang-21.3.8.6-1.el7.x86_64.rpm

rpm -ivh erlang-21.3.8.6-1.el7.x86_64.rpm

erl -version

rpm –import https://www.rabbitmq.com/ rabbitmq-release-signing-key.asc

yum install rabbitmq-server-3.7.17-1.el7.noarch.rpm

Startup

systemctl enable rabbitmq-server.service

web plugin

rabbitmq-plugins enable rabbitmq_management

Configuration file location
node: [email protected]
home dir: /var/lib/rabbitmq
config file(s): /etc/rabbitmq/advanced.config< br>: /etc/rabbitmq/rabbitmq.conf

Access to the console
Default user name and password: guest/guest;
It should be noted that: guest users only provide localhost as ip login;
If you log in remotely, such as: http://192.168.241.101:15672/, an error will be displayed and you cannot log in:

The following is the log output

=WARNING REPORT==== 21-Oct-2017::23:31:33 ===
HTTP access denied: user’guest’-User can only log in via localhost

Access Control (Authentication, Authorisation) in RabbitMQ

/ etc/rabbitmq/rabbitmq.conf

loopback_users = none

Successfully built here
Write the picture description here

Permission configuration
Create user< /p>

rabbitmqctl add_user admin 123456

Grant role

rabbitmqctl set_user_tags admin administrator

View users

rabbitmqctl list_users

Leave a Comment

Your email address will not be published.