RabbitMQ的安装和管理

时间:2022-09-22 08:02:05

c:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>
-----------------------------------------------------------------------------------------
rabbitmqctl.bat forget_cluster_node rabbit@APP02
rabbitmqctl.bat cluster_status
rabbitmqctl.bat status
rabbitmqctl.bat force_boot
-----------------------------------------------------------------------------------------
rabbitmq-service.bat start
rabbitmq-service.bat start
rabbitmq-service help - Display this help
rabbitmq-service install - Install the RabbitMQ service
rabbitmq-service remove - Remove the RabbitMQ service
rabbitmq-service start - Start the RabbitMQ service
rabbitmq-service stop - Stop the RabbitMQ service
rabbitmq-service disable - Disable the RabbitMQ service
rabbitmq-service enable - Enable the RabbitMQ service

-----------------------------------------------------------------------------------------
rabbitmq-server.bat start
-----------------------------------------------------------------------------------------
c:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.1\sbin>rabbitmqctl.bat
Usage:
rabbitmqctl [-n <node>] [-q] <command> [<command options>]

Options:
-n node
-q

Default node is "rabbit@server", where server is the local host. On a host
named "server.example.com", the node name of the RabbitMQ Erlang node will
usually be rabbit@server (unless RABBITMQ_NODENAME has been set to some
non-default value at broker startup time). The output of hostname -s is usually

the correct suffix to use after the "@" sign. See rabbitmq-server(1) for
details of configuring the RabbitMQ broker.

Quiet output mode is selected with the "-q" flag. Informational messages are
suppressed when quiet mode is in effect.

Commands:
stop [<pid_file>]
stop_app
start_app
wait <pid_file>
reset
force_reset
rotate_logs <suffix>

join_cluster <clusternode> [--ram]
cluster_status
change_cluster_node_type disc | ram
forget_cluster_node [--offline]
rename_cluster_node oldnode1 newnode1 [oldnode2] [newnode2 ...]
update_cluster_nodes clusternode
force_boot
sync_queue queue
cancel_sync_queue queue
set_cluster_name name

add_user <username> <password>
delete_user <username>
change_password <username> <newpassword>
clear_password <username>
set_user_tags <username> <tag> ...
list_users

add_vhost <vhostpath>
delete_vhost <vhostpath>
list_vhosts [<vhostinfoitem> ...]
set_permissions [-p <vhostpath>] <user> <conf> <write> <read>
clear_permissions [-p <vhostpath>] <username>
list_permissions [-p <vhostpath>]
list_user_permissions <username>

set_parameter [-p <vhostpath>] <component_name> <name> <value>
clear_parameter [-p <vhostpath>] <component_name> <key>
list_parameters [-p <vhostpath>]

-----------------------------------------------------------------------------------------
https://www.rabbitmq.com/clustering.html
https://www.rabbitmq.com/install-windows.html
https://www.rabbitmq.com/configure.html