How can I close a connection through rabbitmqctl?

420 views
Skip to first unread message

陆佳峰

unread,
Jun 21, 2019, 4:48:03 AM6/21/19
to rabbitmq-users

I check the rabbitmq docs and find this commands.

    rabbitmqctl close_connection {connectionpid} {explanation}
    rabbitmqctl close_connection "<rab...@tanto.4262.0>" "go away"

    rabbitmqctl list_consumers
    Listing consumers in vhost / ...
    queue_name channel_pid consumer_tag ack_required prefetch_count arguments
    test.queue <rab...@host-10-224-245-91.1.862.0> amq.ctag-hmnHyNw43zsWSOoBUC7aNg false 0 []


    rabbitmqctl list_connections
    Listing connections ...
    user peer_host peer_port state
    guest 10.224.68.214 56613 running


    if I use rabbitmqctl list_connections to list connections, then what's the format of the {connectionpid}?I want to use rabbitmqctl close_connection {connectionpid} {explanation} to close a connection,I can't find an example.

Michael Klishin

unread,
Jun 30, 2019, 6:17:21 PM6/30/19
to rabbitmq-users
<rab...@host-10-224-245-91.1.862.0> is one examples of a connection pid (process identifier, as in Erlang processes).

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/8e468eb4-c7b6-4501-b554-9b62f6df0154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages