Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为 RabbitMQ 中的所有 Vhost 应用 Q 过期策略,有什么方法可以从命令行为所有 Vhost 应用策略。
没有。
你可以写一个这样的脚本:
for i in `rabbitmqctl list_vhosts`; do rabbitmqctl -p $i set_policy expiry "" '{""expires":60000"}' --apply-to queues done;
我认为你必须跳过前两个值