赞
踩
1、有个默认的用户名密码guest,但是这个只能通过本地连接,如果在java的rabbitmq连接,会报以下错误:Caused by: com.rabbitmq.client.AuthenticationFailureException: ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile.
at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:385)
2、添加用户以及授权
添加用户:rabbitmqctl add_user username password
为该用户设置权限所有权限:rabbitmqctl set_permissions -p / username".*" ".*" ".*"
设置该用户为管理员角色:rabbitmqctl set_user_tags username administrator
3、查看所有用户:rabbitmqctl list_users
4、配置文件 rabbitmq.config
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。