2021-11-26 09:35:37
浏览数 (3)
查看 queues
代码语言:javascript
复制[root@h102 rabbitmq]# rabbitmqadmin list queues
------- ----------
| name | messages |
------- ----------
| hello | 8 |
| test | 5 |
------- ----------
[root@h102 rabbitmq]#
查看 policies
代码语言:javascript
复制[root@h102 rabbitmq]# rabbitmqadmin list policies
No items
[root@h102 rabbitmq]#
查看 nodes
代码语言:javascript
复制[root@h102 rabbitmq]# rabbitmqadmin list nodes
------------- ------ ----------
| name | type | mem_used |
------------- ------ ----------
| rabbit@h102 | disc | 52274376 |
------------- ------ ----------
[root@h102 rabbitmq]#
查看 overview
代码语言:javascript
复制[root@h102 rabbitmq]# rabbitmqadmin show overview
------------------ ------------------ ----------------------- ----------------------
| rabbitmq_version | cluster_name | queue_totals.messages | object_totals.queues |
------------------ ------------------ ----------------------- ----------------------
| 3.6.1 | rabbit@h101.temp | 13 | 2 |
------------------ ------------------ ----------------------- ----------------------
[root@h102 rabbitmq]#
删除 queue
代码语言:javascript
复制[root@h102 rabbitmq]# rabbitmqadmin list queues
------- ----------
| name | messages |
------- ----------
| hello | 8 |
| test | 5 |
------- ----------
[root@h102 rabbitmq]# rabbitmqadmin delete queue name=hello
queue deleted
[root@h102 rabbitmq]# rabbitmqadmin list queues
------ ----------
| name | messages |
------ ----------
| test | 5 |
------ ----------
[root@h102 rabbitmq]#
删除 user
代码语言:javascript
复制[root@h102 rabbitmq]# rabbitmqadmin list users
------- ----------------------------- ------------------------------ ---------------
| name | hashing_algorithm | password_hash | tags |
------- ----------------------------- ------------------------------ ---------------
| guest | rabbit_password_hashing_md5 | 7jG486YR6/F0hVLWYfCnqRyxKe4= | administrator |
| test | rabbit_password_hashing_md5 | /iSnvCNZ5m3kvqoqqH4U3dSEqTM= | administrator |
------- ----------------------------- ------------------------------ ---------------
[root@h102 rabbitmq]# rabbitmqadmin delete user name=test
user deleted
[root@h102 rabbitmq]# rabbitmqadmin list users
------- ----------------------------- ------------------------------ ---------------
| name | hashing_algorithm | password_hash | tags |
------- ----------------------------- ------------------------------ ---------------
| guest | rabbit_password_hashing_md5 | 7jG486YR6/F0hVLWYfCnqRyxKe4= | administrator |
------- ----------------------------- ------------------------------ ---------------
[root@h102 rabbitmq]#