Skip to content

Installation

Neuron is divided into two installation packages:

  • NeuronEX: Integrated eKuiper, which carries the function of data stream processing engine, allows users to collect and process data at the same time.

  • Neuron: Without integrating eKuiper, it mainly realizes the collection of industrial data.

Users can choose according to their own needs.

Hardware requirement

SpecificationsMinimum configuration recommendationHardware architectureremarks
100 tags128M memoryCPU architecture such as ARM, X86, MIPS, and RISC-V; Linux system or Docker containerSmall gateway device
1,000 tags256M memoryCPU architecture such as ARM, X86, MIPS, and RISC-V; Linux system or Docker containerMedium gateway device
10,000 tags512M memoryCPU architecture such as ARM, X86, MIPS, and RISC-V; Linux system or Docker containerMedium gateway, industrial computer, etc
More than 10,000 tags1G memoryCPU architecture such as ARM, X86, MIPS, and RISC-V; Linux system or Docker containerMedium or large gateway, industrial computer, servers, etc

Installation Conditions

Linux distributionRequired packages
Debian package system
Ubuntu 20.04
Ubuntu 18.04
Ubuntu16.04
Debian 11
Debian 10
Debian 9
Debian 8
deb
Redhat package system
CentOS Stream 9
CentOS Stream 8
CentOS 7
rpm

TIP

The rpm/deb package uses systemd to manage the neuron process and it is recommended that the rpm/deb package is used in preference.

Download

Neuron software packages can be downloaded from the Neuron website https://neugates.io/downloads. You can also download Neuron from Github.

Download filesArchitecture
neuron-x.y.z-linux-amd64.debX86_64
neuron-x.y.z-linux-armhf.debARM_32
neuron-x.y.z-linux-arm64.debARM_64

Version number x.y.z Description:

  • x is the major version number: in general, this version will introduce some important functions, such as the introduction of architectural changes. The upgrade of the major version does not guarantee the compatibility with the old version.

  • y is the minor version number: in general, this type of version will introduce some new functions, but the compatibility under this major version number will be guaranteed.

  • z is the maintenance version number: in general, this version only contains patches of bug fixes in the software, etc.

Running with Docker

Get the image

The neuron docker image can be downloaded from the docker hub website.docker hub

bash
## pull Neuron
$ docker pull emqx/neuron:latest

To support the Alpine image with smaller occupation, please download it from the docker hub website.

bash
## pull Neuron
$ docker pull emqx/neuron:2.3.0-alpine

The NeuronEX docker image can be downloaded from the docker hub website.docker hub

bash
## pull NeuronEX
$ docker pull emqx/neuronex:latest

Start

Start Neuron.

bash
## run Neuron
$ docker run -d --name neuron -p 7000:7000 --privileged=true -v /host/dir:/opt/neuron/persistence --device /dev/ttyUSB0:/dev/ttyS0 --restart=always emqx/neuron:latest

Start NeuronEX

bash
## run NeuronEX
$ docker run -d --name neuronex -p 7000:7000 --privileged=true -v /host/dir:/opt/neuron/persistence --device /dev/ttyUSB0:/dev/ttyS0 --restart=always emqx/neuronex:latest
  • tcp 7000: Used to access the web and http api port.
  • --restart=always: Automatically restart the neuron container when the docker process is restarted.
  • --privileged=true: Optional parameter for easy troubleshooting.
  • --env DISABLE_AUTH=1: Optional parameter to turn off authentication.
  • -v /host/dir:/opt/neuron/persistence: Used to store Neuron configuration information in docker to a local directory, e.g. /host/dir to /opt/neuron/persistence.
  • --device /dev/ttyUSB0:/dev/ttyS0: Used to map the serial port to docker. /dev/ttyUSB0 // Serial port device under Ubuntu; /dev/ttyS0 // Serial port device under Docker.
  • --ulimit nofile=65535: The default value is 1024. When there are many connected devices, increase the value of this field, such as 65535.

Install using deb package

Install

Install according to different versions and architectures, E.g.

bash
$ sudo dpkg -i neuron-2.3.0-linux-armhf.deb

To avoid replacing the neuron package due to the ubuntu system perform the package updated automatically, you also need to execute the following command to keep the neuron package in the apt upgrade.

bash
$ sudo apt-mark hold neuron

TIP

After successful installation of the deb package, Neuron is automatically started.

Uninstall

bash
$ sudo dpkg -r neuron

Install using rpm package

Install

Install according to different versions and architectures, E.g.

bash
$ sudo rpm -i neuron-2.3.0-linux-armhf.rpm

TIP

After successful installation of the rpm package, Neuron is automatically started.

Uninstall

bash
$ sudo rpm -e neuron

Install using .tar.gz package

Download the installation package

Download the installation package according to different versions and architectures, E.g.

bash
$ wget https://www.emqx.com/en/downloads/neuron/2.3.0/neuron-2.3.0-linux-armhf.tar.gz

Unpacking

bash
$ tar -zxvf neuron-2.3.0-linux-armhf.tar.gz
$ cd neuron-2.3.0-linux-armhf

Start

The following command can be executed to start Neuron:

bash
$ ./neuron

Operate Neuron in command line

For rpm and deb installations, Neuron can perform the operation with following commands:

View Neuron Status

bash
$ sudo systemctl status neuron

Stop Neuron

bash
$ sudo systemctl stop neuron

Reatart Neuron

bash
$ sudo systemctl restart neuron