Using deb packages
Download
Download the installation package for different versions and CPU architectures from the EMQ website, for example:
$ wget https://www.emqx.com/en/downloads/neuronex/3.9.2/neuronex-3.9.2-linux-amd64.debInstall
Install based on your version and architecture, for example:
$ sudo dpkg -i neuronex-3.9.2-linux-amd64.debStart
$ sudo systemctl start neuronexStatus
$ sudo systemctl status neuronexStop
$ sudo systemctl stop neuronexUninstall
- Uninstall but keep configuration files, log files, and data files.
$ sudo dpkg -r neuronex- Uninstall and remove all files.
$ sudo dpkg -P neuronexUpgrade
Stop the current EMQX Neuron service:
$ sudo systemctl stop neuronexUninstall the current EMQX Neuron:
$ sudo dpkg -r neuronexDownload the new EMQX Neuron installation package and install it:
$ sudo dpkg -i neuronex-3.x.x-linux-amd64.debAfter running the above commands, the new version of EMQX Neuron will retain the previous configurations. Start the new EMQX Neuron service:
$ sudo systemctl start neuronexTIP
Alternatively, you can manually copy and back up the files in the /opt/neuronex/data/ directory of the old EMQX Neuron version, then import these files into the same directory of the new EMQX Neuron version to restore the configurations.
Uninstall
Stop the service first (if installed as a systemd service):
sudo systemctl stop neuronex || trueUninstall while keeping configuration, log, and data files:
sudo dpkg -r neuronexUninstall and remove all files:
sudo dpkg -P neuronex