Windows RabbitMQ Commands

Source: Internet
Author: User

Start:

D:\Program FILES\RABBITMQ server\rabbitmq_server-3.6.6\sbin>rabbitmq-server starT

Installation Management tools:

Reference Official Document: Http://www.rabbitmq.com/management.html

The operation is simple, just under DOS, enter the installation directory (D:\Program FILES\RABBITMQ server\rabbitmq_server-3.6.6\sbin) Execute the following command to install successfully.

Rabbitmq-plugins Enable Rabbitmq_management

Can be tested by accessing http://localhost:15672, the default login account is: Guest, password: Guest.

RABBITMQCTL management tools are available in the standard format: rabbitmqctl [-N node] [-t timeout] [-q] {command} [command Options ...]
Where-n-t-Q is the parameter of the management tool,
-n Specifies that the node defaults to [email protected], i.e. all commands are executed on this node;
-Q for quiet output mode;
-T sets the time-out, which applies only to list-related commands, and defaults to infinity.
The above three parameters are rarely used, only in the cluster management can specify the node is very useful, such as not operational personnel, just for the convenience of development, the general choice of default is sufficient.
Rabbitmqctl provides a very rich connmand, which will be described in a relatively common set of commands, including some of the things you should be aware of when using it.
(1), some commands about user
Add_user <username> <password> Add a user, you need to specify a user name and password;
Delete_user <username> Delete a user, just specify the user name;
Change_password <username> <newpassword> Modify the password of the specified user;
Clear_password <username> Delete password;
Set_user_tags <username> <tag> Set the user role, the command will be emptied of the original role, the role can be set multiple or 0;
List_users lists all users that already exist;
Note:
RABBITMQ has the following roles:
None, management, policymaker, monitoring, administrator

None
Cannot access Management plugin

Management
Anything a user can do with AMQP plus:
List the virtual hosts that you can log into via AMQP
View queues, exchanges and bindings in your virtual hosts
View and close your own channels and connections
View statistics about the "global" of your own virtual hosts, including the activities of other users in these virtual hosts.

PolicyMaker
Anything that management can do plus:
View, create, and delete your own virtual hosts policies and parameters

Monitoring
Anything that management can do plus:
List all virtual hosts, including virtual hosts that they cannot log in to
View connections and channels for other users
View node-level data such as clustering and memory usage
View real global statistics about all virtual hosts

Administrator
Anything that policymaker and monitoring can do plus:
Create and delete virtual hosts
View, create, and delete users
View Create and Delete permissions
Close other users ' connections
(2), virtual machines, and permissions
Add_vhost <vhostpath> Add a virtual machine such as: Rabbitmqctl add_vhost myvhost
Note: The first character of the virtual machine should not be "/", in the URL method to establish a connection if the specified virtual confidential/vhostname way to specify, easy to cause misunderstanding, if the virtual machine named/myvhost will be used to become//myvhost.
Delete_vhost <vhostpath> Delete a virtual machine
List_vhosts [<vhostinfoitem> ...] print out the list of virtual machines
set_permissions [-P <vhostpath>] <user> <conf> <write> <read> Set the permissions for the user to enter the virtual machine, if you do not specify a virtual The intended host defaults to/
Note: When you execute this command, do not enclose quotes in Windows <user> <conf> <write> <read> Four parameters, such as:
Rabbitmqctl set_permissions-p myvhost userName. *. *. * cannot be written

Rabbitmqctl set_permissions-p myvhost userName '. * '. * '. * '
The meanings of each field are described in the next article

clear_permissions [-P <vhostpath>] <username> Delete the specified user's permission to enter the specified virtual machine, the default virtual host is/
list_permissions [-P <vhostpath>] Lists the list of users who have access to the specified virtual host.

List format is: UserName conf write read
List_user_permissions <username> lists the list of virtual hosts to which the specified user has access to the virtual host.

List format is: Vhostname conf write read
(3), other common commands
list_queues [-P <vhostpath>] [<queueinfoitem> ...] Print a list of message queues
list_exchanges [-P <vhostpath>] [<exchangeinfoitem> ...] Print switch list
list_bindings [-P <vhostpath>] [<bindinginfoitem> ...] Print Binder List
List_connections [<connectioninfoitem> ...] Print L connection list
List_channels [<channelinfoitem> ...] Print consumer List

Windows RabbitMQ Commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.