modules 命令

modules 命令用于加载、卸载和查询内置模块。

命令描述
modules list列出全部内置模块 (Module)
modules load <Module>加载内置模块 (Module)
modules unload <Module>卸载内置模块 (Module)
modules reload <Module>重载内置模块 (Module)

modules list

列出全部内置模块:

  1. $ ./bin/emqx_ctl modules list
  2. Module(emqx_mod_delayed, description=EMQ X Delayed Publish Module, active=false)
  3. Module(emqx_mod_topic_metrics, description=EMQ X Topic Metrics Module, active=false)
  4. Module(emqx_mod_subscription, description=EMQ X Subscription Module, active=false)
  5. Module(emqx_mod_acl_internal, description=EMQ X Internal ACL Module, active=true)
  6. Module(emqx_mod_rewrite, description=EMQ X Topic Rewrite Module, active=false)
  7. Module(emqx_mod_presence, description=EMQ X Presence Module, active=true)

modules load

加载内置模块:

  1. $ ./bin/emqx_ctl modules load emqx_mod_delayed
  2. Module emqx_mod_delayed loaded successfully.

modules unload

卸载内置模块:

  1. $ ./bin/emqx_ctl modules unload emqx_mod_delayed
  2. Module emqx_mod_delayed unloaded successfully.

modules reload

重载内置模块:

  1. $ ./bin/emqx_ctl modules reload emqx_mod_acl_internal
  2. Module emqx_mod_acl_internal reloaded successfully.