rabbitmq

springdeMacBook-Pro:plugins spring$ pwd
/Users/spring/Downloads/rabbitmq_server-3.7.5/plugins
springdeMacBook-Pro:plugins spring$ cd ../
springdeMacBook-Pro:rabbitmq_server-3.7.5 spring$ ls
bin erts-9.2.1 etc lib priv sbin var
ebin escript include plugins releases share
springdeMacBook-Pro:rabbitmq_server-3.7.5 spring$ cd sbin/
springdeMacBook-Pro:sbin spring$ ls -ltr
total 1016
-rwxr-xr-x  1 spring  staff    1235  5 10 11:05 rabbitmqctl
-rwxr-xr-x@ 1 spring  staff   13266  5 10 11:05 rabbitmq-server
-rwxr-xr-x  1 spring  staff    1263  5 10 11:05 rabbitmq-plugins
-rwxr-xr-x  1 spring  staff   14763  5 10 11:05 rabbitmq-env
-rwxr-xr-x  1 spring  staff    1244  5 10 11:05 rabbitmq-diagnostics
-rwxr-xr-x  1 spring  staff    2144  5 10 11:05 rabbitmq-defaults

-rwxr-xr-x  1 spring  staff  468026  5 10 11:05 cuttlefish

启动插件,页面就可以登录了 guest/guest

springdeMacBook-Pro:sbin spring$ sudo ./rabbitmq-plugins enable rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@springdeMacBook-Pro...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch


started 3 plugins.
springdeMacBook-Pro:sbin spring$ pwd
/Users/spring/Downloads/rabbitmq_server-3.7.5/sbin
springdeMacBook-Pro:sbin spring$ rabbitmqctl  list_users
-bash: rabbitmqctl: command not found
springdeMacBook-Pro:sbin spring$ ./rabbitmqctl  list_users
Listing users ...
guest         [administrator]
springdeMacBook-Pro:sbin spring$ ./rabbitmqctl  add_user springcloud 123456
Adding user "springcloud" ...
springdeMacBook-Pro:sbin spring$ ./rabbitmqctl  list_users
Listing users ...
springcloud []
guest         [administrator]
springdeMacBook-Pro:sbin spring$ ./rabbitmqctl  set_user_tags springcloud administrator
Setting tags for user "springcloud" to [administrator] ...
springdeMacBook-Pro:sbin spring$ ./rabbitmqctl  list_users
Listing users ...
springcloud [administrator]
guest         [administrator]
springdeMacBook-Pro:sbin spring$ ./rabbitmqctl  set_permissions -p "/" springcloud ".*" ".*" ".*"
Setting permissions for user "springcloud" in vhost "/" ...
springdeMacBook-Pro:sbin spring$ ./rabbitmqctl  list_users
Listing users ...
springcloud [administrator]
guest         [administrator]
springdeMacBook-Pro:sbin spring$
©️2020 CSDN 皮肤主题: 大白 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值