Installation
Neuron software package is available in EMQ website https://www.emqx.com/en.
For the version number x.y.z, x is major version number which may change if the entire system structure enhancement, y is minor version number which may change if there will be some additional features. z is the patch number for bug fix in the Neuron software.
Pre-requisites
The following Linux distros or devices have been tested for Neuron.
Note: Some Linux distros require openssl1.1 installation.
For Debian package, wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
For Redhat package,
Ensure that openssl is upgraded to version 1.1.If rpm -ivh neuron-1.3.0-linux-amd64.rpm prompts a missing dependency, run rpm -ivh neuron-1.3.0-linux-amd64.rpm —nodeps —force
New Installation
New Neuron software can be installed in a home directory of any user account. In case a user account is needed, we recommand "neuron" for installation.
Run Neuron for the first time to buildup Neuron data directories dat:
Directory {PATH}/dat created
Directory {PATH}/dat/0/adm created
Directory {PATH}/dat/0/adm/usr created
Directory {PATH}/dat/0/alm created
Directory {PATH}/dat/0/cfg created
Directory {PATH}/dat/0/log created
Directory {PATH}/dat/0/scp created
Directory {PATH}/dat/0/scp/subr created
Directory {PATH}/dat/0/obj created
Directory {PATH}/dat/0/trd created
Neuron instance 0 is now running with PID:6312 Port:7000
Starting the Neuron System
To start Neuron system by the command:
~$ {PATH}/neuron start
To stop the running of Neuron System by the command:
Starting the specific Neuron System
To start specific Neuron instance by the command:
~$ {PATH}/neuron start -i7
Neuron instance 7 is now running with PID:8097 Port:7007
Stopping the specific Neuron System
To stop the running of specific Neuron by the command:
~$ {PATH}/neuron stop -i7
Neuron instance 7 is stopping ...
Starting multiple Neuron Systems
To start multiple Neuron system instances by the command
~$ {PATH}/neuron stop -a5
Neuron instance 0 is stopping ...
Stopped !
Neuron instance 1 is stopping ...
Stopped !
Neuron instance 2 is stopping ...
Stopped !
Neuron instance 3 is stopping ...
Neuron instance 4 is stopping ...
Stopped !
Checking the Neuron System
To checkup the status of Neuron systems:
~$ {PATH}/neuron status
Neuron instance 0 is running with PID:6118 Port:7000
Neuron instance 1 is running with PID:6121 Port:7001
Neuron instance 2 is running with PID:6132 Port:7002
Neuron instance 3 is running with PID:6139 Port:7003
Optional Switches
Some more useful switches for "neuron" is available.
Usage: neuron [start|stop|status] [options]
where [-a|-i] are exclusive options.
Running in Docker
To get the docker image from https://hub.docker.com
To start docker container
~$ docker run -d --name neuron -p 7000:7000 emqx/neuron:1.0.0