2 27

RabbitMQ开启trace log

1.rabbitmq-plugins enable rabbitmq_tracing
2.vim /etc/rabbitmq/rabbitmq.config 添加以下内容:

[{rabbitmq_tracing, [{directory, "/var/log/rabbitmq"}, {username, "username"},{password, "password"}]}].

3.打开控制台,Admin->Tracing->Add a new trace