How to reset user for rabbitmq management

前端 未结 4 1010
隐瞒了意图╮
隐瞒了意图╮ 2021-01-29 18:38

Using rabbitmq, we can install management plugin. Then we access via browser using http://localhost:55672/ using guest:guest. The problem is, I can not login anymor

4条回答
  •  不知归路
    2021-01-29 19:18

    This is specifically for aliveness test, but could apply to other apis as well

    rabbitmqctl add_vhost statuscheckvhost
    rabbitmqctl add_user heartbeat alive
    rabbitmqctl set_permissions -p statuscheckvhost heartbeat ".*" ".*" ".*"
    rabbitmqctl set_user_tags heartbeat management
    
    curl -i -u heartbeat:alive http://127.0.0.1:55672/api/aliveness-test/statuscheckvhost
    HTTP/1.1 200 OK
    Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
    Date: Thu, 21 Feb 2013 22:20:10 GMT
    Content-Type: application/json
    Content-Length: 15
    Cache-Control: no-cache
    {"status":"ok"}
    

提交回复
热议问题