tshark 抓包 rabbitmq 协议包
输入 tshark -Y amqp
就可以了
─➤ tshark -Y amqp 1 ↵
Capturing on 'enp34s0'
737 7.859437643 192.168.31.203 → 192.168.31.245 AMQP 578 Connection.Start
739 7.859776699 192.168.31.245 → 192.168.31.203 AMQP 251 Connection.Start-Ok
741 7.860942759 192.168.31.203 → 192.168.31.245 AMQP 86 Connection.Tune
743 7.861154346 192.168.31.245 → 192.168.31.203 AMQP 86 Connection.Tune-Ok
744 7.861217244 192.168.31.245 → 192.168.31.203 AMQP 82 Connection.Open vhost=/
748 7.863124916 192.168.31.203 → 192.168.31.245 AMQP 79 Connection.Open-Ok
750 7.863814761 192.168.31.245 → 192.168.31.203 AMQP 79 Channel.Open
753 7.866605942 192.168.31.203 → 192.168.31.245 AMQP 82 Channel.Open-Ok
757 7.867457801 192.168.31.245 → 192.168.31.203 AMQP 102 Exchange.Declare x=nameko-rpc
759 7.868057657 192.168.31.203 → 192.168.31.245 AMQP 78 Exchange.Declare-Ok
760 7.868337152 192.168.31.245 → 192.168.31.203 AMQP 101 Queue.Declare q=rpc-add_service
762 7.868989637 192.168.31.203 → 192.168.31.245 AMQP 102 Queue.Declare-Ok q=rpc-add_service
763 7.869153745 192.168.31.245 → 192.168.31.203 AMQP 126 Queue.Bind q=rpc-add_service x=nameko-rpc bk=add_service.*
765 7.870936603 192.168.31.203 → 192.168.31.245 AMQP 78 Queue.Bind-Ok
766 7.871189277 192.168.31.245 → 192.168.31.203 AMQP 85 Basic.Qos
768 7.871669990 192.168.31.203 → 192.168.31.245 AMQP 78 Basic.Qos-Ok
769 7.872109455 192.168.31.245 → 192.168.31.203 AMQP 116 Exchange.Declare x=productor_service.events
771 7.872759415 192.168.31.203 → 192.168.31.245 AMQP 78 Exchange.Declare-Ok
772 7.872969399 192.168.31.245 → 192.168.31.203 AMQP 147 Queue.Declare q=evt-productor_service-test_no_rpc--add_service.handle_message
774 7.873727783 192.168.31.203 → 192.168.31.245 AMQP 148 Queue.Declare-Ok q=evt-productor_service-test_no_rpc--add_service.handle_message
775 7.873934181 192.168.31.245 → 192.168.31.203 AMQP 184 Queue.Bind q=evt-productor_service-test_no_rpc--add_service.handle_message x=productor_service.events bk=test_no_rpc
777 7.875732377 192.168.31.203 → 192.168.31.245 AMQP 78 Queue.Bind-Ok
778 7.875972839 192.168.31.245 → 192.168.31.203 AMQP 85 Basic.Qos
780 7.876535004 192.168.31.203 → 192.168.31.245 AMQP 78 Basic.Qos-Ok
781 7.876700655 192.168.31.245 → 192.168.31.203 AMQP 107 Basic.Consume q=rpc-add_service
784 7.877579736 192.168.31.203 → 192.168.31.245 AMQP 84 Basic.Consume-Ok
785 7.877817903 192.168.31.245 → 192.168.31.203 AMQP 153 Basic.Consume q=evt-productor_service-test_no_rpc--add_service.handle_message
788 7.878819634 192.168.31.203 → 192.168.31.245 AMQP 84 Basic.Consume-Ok
2068 20.603182475 192.168.31.203 → 192.168.31.245 AMQP 578 Connection.Start
2070 20.603405554 192.168.31.245 → 192.168.31.203 AMQP 251 Connection.Start-Ok
2072 20.604347773 192.168.31.203 → 192.168.31.245 AMQP 86 Connection.Tune
2074 20.604486404 192.168.31.245 → 192.168.31.203 AMQP 86 Connection.Tune-Ok
2075 20.604568878 192.168.31.245 → 192.168.31.203 AMQP 82 Connection.Open vhost=/
2078 20.606191525 192.168.31.203 → 192.168.31.245 AMQP 79 Connection.Open-Ok
2080 20.606440563 192.168.31.245 → 192.168.31.203 AMQP 79 Channel.Open
2082 20.609904197 192.168.31.203 → 192.168.31.245 AMQP 82 Channel.Open-Ok
2084 20.610191467 192.168.31.245 → 192.168.31.203 AMQP 79 Confirm.Select
2086 20.610727133 192.168.31.203 → 192.168.31.245 AMQP 78 Confirm.Select-Ok
2088 20.611078102 192.168.31.245 → 192.168.31.203 AMQP 191 Basic.Publish x=productor_service.events rk=test_no_rpc Content-Header type=application/json Content-Body (application/json)
2091 20.612854878 192.168.31.203 → 192.168.31.245 AMQP 203 Basic.Deliver x=productor_service.events rk=test_no_rpc Content-Header type=application/json Content-Body (application/json)
2093 20.614442318 192.168.31.245 → 192.168.31.203 AMQP 87 Basic.Ack
2098 20.646187505 192.168.31.203 → 192.168.31.245 AMQP 87 Basic.Ack
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。