Solve the problem of Not management user (Login failed) error when RabbitMq logs in

Not management user Translated into Chinese: 非管理用户 Non-administrative users cannot log in to the management console and therefore this error is reported.

Although I am logged in as aguest user, because the accountguest has all operating permissions, I can certainly log in to the management console.

But I modified it aboveguestThe user role is empty and now I cannot log in.

Use the following command to viewguestpermissions

rabbitmqctl list_users

 

You will see thatguest the permission is empty because I did not set it when I clicked the Add User button aboveTags As a result, the user role permissions ofguest are empty.

Tags is the character name (corresponding to administratormonitoringpolicymakermanagement or other customized name below)

rabbitmqThe user roles can be divided into five categories: super administrator, monitor, policy maker, ordinary manager and others.

  1. Superior management staff(administrator)

Can log in to the management console (when management plugin is enabled) to view all information and operate user policies (policy). a>

  1. Holder(monitoring)

can log in to the management console (when management plugin is enabled) and view rabbitmq node-related information (number of processes, memory usage, disk usage etc)

  1. Strategist (policymaker)

can log in to the management console (when management plugin is enabled), and can manage policy at the same time. But the relevant information of the node cannot be viewed (the part marked by the red box in the figure above).

Comparison of and can see these contentsadministratoradministrator

  1. Ordinary managers (management)

You can only log in to the management console (when management plugin is enabled), you cannot see node information and cannot manage policies.

  1. other

Unable to log in to the management console is usually ordinary producers and consumers.

Well I now have two solutions as shown below

  1. Use rabbitmqctlModification guestKakuiro Yukitsu

  2. Add new users and user roles

3. Solve the problem

3.1 rabbitmqctl modifies guest role permissions

  1. Use the following command to modify guest’s role permissions
rabbitmqctl set_user_tags guest administrator

 

  1. Use commandrabbitmqctl list_usersto viewguest’s role permissions

 

Guess you like

Origin blog.csdn.net/wufaqidong1/article/details/134846063