Installation

In order to meet customer needs, 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.

Download

Neuron software packages can be downloaded from the Neuron website https://neugates.io/downloadsInstallation - 图1 (opens new window).The installation package downloaded from official website is adapted to a newer system, so please download more system version packages and version packages adapted to the old system from GithubInstallation - 图2 (opens new window).

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.

Installation Conditions

Linux distribution/deviceRequired packages
Debian package system
Ubuntu 20
Ubuntu 18
deb/tar.gz
Redhat package system
Contos stream 8
Centos stream 9
rpm/tar.gz

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.

Install using deb package

Install

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

  1. $ 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.

  1. $ sudo apt-mark hold neuron

TIP

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

Uninstall

  1. $ sudo dpkg -r neuron

Install using rpm package

Install

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

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

TIP

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

Uninstall

  1. $ 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.

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

Unpacking

  1. $ sudo tar -zxvf neuron-2.3.0-linux-armhf.tar.gz
  2. $ cd neuron-2.3.0-linux-armhf

Start

The following command can be executed to start Neuron:

  1. $ ./neuron

Running with Docker

Get the image

The neuron docker image can be downloaded from the docker hub website.docker hubInstallation - 图3 (opens new window)

  1. ## pull Neuron
  2. $ docker pull emqx/neuron:latest

To support the Alpine image with smaller occupation, please download it from the docker hubInstallation - 图4 (opens new window) website.

  1. ## pull Neuron
  2. $ docker pull emqx/neuron:2.3.0-alpine

The NeuronEX docker image can be downloaded from the docker hub website.docker hubInstallation - 图5 (opens new window)

  1. ## pull NeuronEX
  2. $ docker pull emqx/neuronex:latest

Start

Start Neuron.

  1. ## run Neuron
  2. $ docker run -d --name neuron -p 7000:7000 --privileged=true --restart=always emqx/neuron:latest

Start NeuronEX

  1. ## run NeuronEX
  2. $ docker run -d --name neuronex -p 7000:7000 --privileged=true --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=true: 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.
  • --device /dev/ttyUSB0:/dev/ttyS0: Used to map the serial port to docker.

Operate Neuron in command line

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

View Neuron Status

  1. $ sudo systemctl status neuron

Stop Neuron

  1. $ sudo systemctl stop neuron

Reatart Neuron

  1. $ sudo systemctl restart neuron