rabbitmq 遇到的几个问题
解决类似这样的问题,一般有,type,auto_delete,durable等参数不匹配,durable对应页面的Durability,type对应页面的type,比如你创建的type类型为topic,可能实际为fanout,则需要去删除,然后在重新创建。
inequivalent arg 'durable' for queue 'CALLBACK-DATA-ENGINE' in vhost '/': received 'true' but current is 'false', class-id=50, method-id=10)
如何删除exchange,点击相应的exchange,然后删除
rabbitmq几个命令:
rabbitmqctl add_vhost order
#设置开机启动 systemctl enable rabbitmq-server.service #查看服务的状态 systemctl status rabbitmq-server.service #启动这个服务 systemctl start rabbitmq-server.service #停止这个服务 systemctl stop rabbitmq-server.service #查看当前所有的用户 rabbitmqctl list_users #查看guest用户所有拥有的权限 rabbitmqctl list_user_permissions guest #删除原来的guest用户 rabbitmqctl delete_user guest #添加一个新的用户 rabbitmqctl add_user xiaobobo 12345678 #给小波波设置个角色(tag) rabbitmqctl set_user_tags xiaobobo administrator
#创建vhost
rabbitmqctl add_vhost / #给xiaobobo赋予/权限 rabbitmqctl set_permissions -p / xiaobobo ".*" ".*" ".*" #查看用户所拥有的权限 rabbitmqctl list_user_permissions xiaobobo #开启web的管理端 rabbitmq-plugins enable rabbitmq_management
#删除队列命令rabbitmqctl delete_queue queue_name
启动关闭命令
service rabbitmq-server start
service rabbitmq-server stop