routes 命令

routes 命令查询路由表。

routes list查询全部路由
routes show <Topic>根据 Topic 查询路由

routes list

查询全部路由:

  1. $ ./bin/emqx_ctl routes list
  2. t2/# -> emqx2@127.0.0.1
  3. t/+/x -> emqx2@127.0.0.1,emqx@127.0.0.1

routes show <Topic>

根据 Topic 查询一条路由:

  1. $ ./bin/emqx_ctl routes show t/+/x
  2. t/+/x -> emqx2@127.0.0.1,emqx@127.0.0.1