安装 Erlang 百度下载 下载 rabbitmq 安装好 rabbitmq-plugins enable rabbitmq_management 添加web界面 http://localhost:15672/ 默认地址 rabbitmq-server start 启动 mq rabbitmqctl add_user liujian 123 添加用户密码 window 11 添加报错, 通过guest 添加用户 rabbitmqctl set_user_tags liujian administrator 标识 授权:rabbitmqctl set_user_tags User Tag User为用户名, Tag为角色名(对应于上面的administrator,monitoring,policymaker,management,或其他自定义名称)。 rabbitmqctl set_permissions -p "/" liujian ".*" ".*" ".*" 角色权限 var factory = new ConnectionFactory() // 创建连接工厂对象 { HostName = "127.0.0.1", Port = 5672, UserName = "liujian", Password = "1236", VirtualHost = "liujian" //每个例子之间的host ,可在mq里添加 };
标签:set,liujian,rabbitmq,rabbitmqctl,添加,user,简单,纪要 From: https://www.cnblogs.com/liujian1368928/p/17937797