In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to solve RabbitMQ can not use guest user login problem", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly in-depth, together to study and learn "how to solve RabbitMQ can not use guest user login problem"!
RabbitMQ failed to log in as guest user. 401 User authorization failed to log in. Handling process:
Create user and password
rabbitmqctl add_user guest guest
2. set the user permissions
rabbitmqctl set_permissions -p / guest ".* " ".* " ".* "
3. Set up user roles
rabbitmqctl set_user_tags guest administrator Detailed explanation: 1. user management
User management includes adding users, deleting users, viewing user lists, and modifying user passwords.
the corresponding command
(1)Add a new user
rabbitmqctl add_user Username Password
(2)delete a user
rabbitmqctl delete_user Username
(3)Change user password
rabbitmqctl change_password Username Newpassword
(4)View current user list
rabbitmqctl list_users2. user role
According to personal understanding, user roles can be divided into five categories, super administrator, monitor, policy maker, general manager and others.
(1)super administrator
You can log in to the admin console (with management plugin enabled) to view all information and to manipulate user policies.
(2)monitor (monitor)
Log in to the admin console (with management plugin enabled) and view rabbitmq node related information (number of processes, memory usage, disk usage, etc.)
(3)Policymaker
You can log in to the admin console (with management plugin enabled) and manage policies. However, you cannot view the information about the node (the part identified by the red box in the image above).
Compare this to the administrator, who can see it.
(4)general manager (management)
You can only log in to the admin console (with management plugin enabled), you cannot see node information, and you cannot manage policies.
(5)other
Unable to log on to the admin console, usually ordinary producers and consumers.
Once you understand this, you can assign different roles to different users as needed to manage them on-demand.
The command to set user roles is rabbitmqctl set_user_tags User Tag
User is the user name, Tag is the role name (corresponding to administrator, monitoring, policymaker, management, or other custom name above).
Multiple roles can also be assigned to the same user, for example
rabbitmqctl set_user_tags hncscwc monitoring policymaker3. user rights
User permissions refer to the user's operation permissions on exchange and queue, including configuration permissions, read and write permissions. Configuration permissions affect exchange, queue declaration and deletion. Read and write permissions affect fetching messages from queues, sending messages to exchanges, and binding queues to exchanges.
For example, binding queue to an exchange requires writeable access to queue and readable access to exchange; sending messages to exchange requires writeable access to exchange; fetching data from queue requires readable access to queue. For details, please refer to the section "How permissions work" in the official documentation.
The relevant commands are:
(1)set the user permissions
rabbitmqctl set_permissions -p VHostPath User ConfP WriteP ReadP
(2)View (specify hostpath) all user permissions information
rabbitmqctl list_permissions [-p VHostPath]
(3)View permission information for a specified user
rabbitmqctl list_user_permissions User
(4)Clear user's permission information
rabbitmqctl clear_permissions [-p VHostPath] User Thank you for reading, the above is "how to solve RabbitMQ can not use guest user login problem" content, after the study of this article, I believe everyone on how to solve RabbitMQ can not use guest user login problem This problem has a deeper understanding, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.