Build from source
Installation dependencies
Please refer to Install dependencies.
Compilation
$ git clone https://github.com/emqx/neuron
$ cd neuron
$ mkdir build && cd build
$ cmake .. && make
There are three optional parameters in CMakeLists:
- CMAKE BUILD Type “Debug”, which compiles the debug version by default.
- DISABLE_WERROR, which treats all warnings as errors.
Usage example:cmake -DISABLE_WERROR=1 ..
- DISABLE_ ASAN, select whether to enable libasan memory detection.
Install Dashboard
On the neuron dashboard download the latest neuron-dashboard.zip
from the page, extract it, and place it in the dist directory under the Neuron executable directory.
Operation
$ cd build
$ ./ neuron