更改密码
[root@node02 ~]# rabbitmqctl change_password guest guest
Changing password for user “guest” …
[root@node02 ~]#
设置用户为超级管理员
[root@node02 ~]# rabbitmqctl set_user_tags guest administrator
Setting tags for user “guest” to [administrator] …
赋予权限
[root@node02 ~]# rabbitmqctl set_permissions -p / guest ‘.’ '.’ ‘.*’
Setting permissions for user “guest” in vhost “/” …
[root@node02 ~]#
仍然登录不上 ↓
web管理界面报错
rabbitmq User can only log in via localhost
配置文件添加如下内容(没有配置文件则创建新的配置文件)
[root@node02 rabbitmq]# vi rabbitmq.config
[{rabbit, [{loopback_users, []}]}].
重启服务后登录
[root@node02 rabbitmq]# systemctl restart rabbitmq-server
[root@node02 rabbitmq]#