Files
Linux/问题记录/RabbitMQ启动报错.md
offends cee91802b3
Some checks failed
continuous-integration/drone Build is failing
synchronization
2025-08-25 15:57:40 +08:00

30 lines
453 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

> 本文作者:丁辉
# 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 '.*' '.*' '.*'
```
完美解决