Directory
In the above directories, bin
, etc
, data
andlog
are commonly used by users.
emqx、emqx.cmd
The executable file of EMQX Broker can be found in .
emqx_ctl、emqx_ctl.cmd
The executable file of EMQX Broker management command, you can check Management Command CLI for specific use.
EMQX Broker is set by configuration files in the etc
directory. The main configuration files include:
Configuration file | Description |
---|---|
emqx.conf | EMQX Broker configuration file |
acl.conf | EMQX Broker default ACL rule configuration file |
plugins/*.conf | EMQX Broker various plug-in configuration files |
certs | EMQX Broker SSL certificate file |
EMQX Broker stores the running data in the data
directory. The main files include:
configs/app.*.config
EMQX Broker reads the configuration in and etc/plugins/*.conf
, converts it to the Erlang native configuration file format, and reads the configuration at runtime.
loaded_plugins
The loaded_plugins
file records the list of plug-ins that was started by EMQX Broker by default. You can modify this file to add or delete plug-ins. The startup item format in loaded_plugins
is {<Plugin Name>, <Enabled>}.
, the <Enabled>
field is a Boolean type, and EMQX Broker will determine whether to start this plugin according to the value of <Enabled>
. For more information about plugins, please see .
mnesia
EMQX Broker uses the Mnesia database to store its own running data, such as alarm records, resources and rules created by the rule engine, Dashboard user information, etc. These data will be stored under the mnesia
directory. Once the directory is deleted, EMQX Broker will lose all business data.
You can query the system information of the Mnesia database in EMQX Broker through the emqx_ctl mnesia
command. For details, please see Management Command CLI.
emqx.log.*
For the log file generated when EMQX Broker is running, please check Log and Trace.
crash.dump
The crash dump file of EMQX Broker can be modified through etc/emqx.conf
, and the specific content can be viewed in .
It can control the copy of the console log when EMQX Broker is started in the background with .