./rabbitmqctl add_user test123 test123
./rabbitmqctl set_user_tags test123 administrator
没权限的要加sudo
如果创建了,代码还是连接不上,执行
rabbitmqctl set_permissions -p "/" username ".*" ".*" ".*"