This commit is contained in:
29
问题记录/RabbitMQ启动报错.md
Normal file
29
问题记录/RabbitMQ启动报错.md
Normal file
@@ -0,0 +1,29 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# RabbitMQ启动报错
|
||||
|
||||
**报错: `Reason: "no access to this vhost"`**
|
||||
|
||||
> 原因:vhost 迁移或宕机导致 vhost 不可用,使得无法通过这个 vhost 广播消息
|
||||
|
||||
**问题解决方案:**
|
||||
|
||||
1. 删除vhost
|
||||
|
||||
```bash
|
||||
rabbitmqctl delete_vhost /
|
||||
```
|
||||
|
||||
2. 重建vhost
|
||||
|
||||
```bash
|
||||
rabbitmqctl add_vhost /
|
||||
```
|
||||
|
||||
3. 授权
|
||||
|
||||
```bash
|
||||
rabbitmqctl set_permissions -p / admin '.*' '.*' '.*'
|
||||
```
|
||||
|
||||
完美解决
|
Reference in New Issue
Block a user