# 安装rabbitmq
$ sudo apt install rabbitmq-server
# 下载rabbitmqadmin管理工具
sudo rabbitmq-plugins enable rabbitmq_management wget localhost:15672/cli/rabbitmqadmin
# 拷贝命令到 /use/local/bin 下
cp ./rabbitmqadmin /usr/local/bin/rabbitmqadmin
# 赋予权限
chmod +x /usr/local/bin/rabbitmqadmin
# 查看用户
$ rabbitmqadmin list users
+-------+-----------------------------+----------------+----------------+
| name | hashing_algorithm |password_hash| tags |
+-------+ ------------------------- +----------------+--------------- +
| guest | rabbit_password_hashinX| WHrdYassdd | administrator |
| test | rabbit_password_hashing | YtvLRXd | |
+------+------------------------------+----------------+----------------+