Skip to content

Linux

For Linux users, NanoMQ currently provides four deployment versions, each with distinct functionalities as detailed in the table below:

FunctionNanoMQ Basic Version (default)NanoMQ SQLite EditionNanoMQ MsQuic EditionNanoMQ Full Version
MQTT Broker Function
TLS/SSL
SQLite
Rule Engine
MQTT over TCP Bridging
MQTT over TLS Bridging
MQTT over QUIC Bridging
AWS Bridging *
ZMQ Gateway
SOME/IP Gateway
DDS Gateway
Bench Benchmark Tools

[^*]: AWS bridging is currently unavailable with Docker deployment. To use AWS bridging, please build NanoMQ from the source code.

You can select the appropriate installation version of NanoMQ based on your specific business requirements. To do this, simply replace nanomq in the installation command with the corresponding version code:

  • For the SQLite Edition of NanoMQ, use nanomq-sqlite
  • For the MsQuic Edition of NanoMQ, use nanomq-msquic
  • For the Full Version of NanoMQ, use nanomq-full

Install NanoMQ

Install with Apt/Yum Source

OSInstallation Method
Debian-based distributions like UbuntuApt
Red Hat-based distributions like CentOS, FedoraYum

Install with Package

ArchitectureDebian Package (.deb)RPM Package (.rpm)
amd64YesNo
arm64YesYes
riscv64YesYes
mipsYesYes
armhfYesYes
armelYesYes
X86_64NoYes

Install with Apt source

NanoMQ supports installing with Apt source to provide our users with a convenient and reliable way to manage NanoMQ installation and updates. Here is how to install NanoMQ with Apt source:

  1. Download the NanoMQ repository:

    bash
    curl -s https://assets.emqx.com/scripts/install-nanomq-deb.sh | sudo bash
  2. Install NanoMQ:

    bash
    sudo apt-get install nanomq
  3. Start NanoMQ:

    bash
    nanomq start

Install with Yum source

For Red Hat-based distributions like CentOS, Fedora, NanoMQ also supports installing with Yum source. Here is how to install NanoMQ with Yum source:

  1. Download the NanoMQ repository:

    bash
    curl -s https://assets.emqx.com/scripts/install-nanomq-rpm.sh | sudo bash
  2. Install NanoMQ:

    bash
    sudo yum install -y nanomq
  3. Start NanoMQ:

    bash
    nanomq start

Install with Package

This section takes installing v0.18.2 under the arm64 architecture as an example, for more installation options, you may refer to the NanoMQ Download page.

  1. Download anomq-0.18.2-linux-x86_64.rpm.

    bash
    wget https://www.emqx.com/en/downloads/nanomq/0.18.2/nanomq-0.18.2-linux-arm64.deb
  2. Install NanoMQ

    bash
    sudo apt install ./nanomq-0.18.2-linux-arm64.deb
  3. Run NanoMQ

    bash
    nanomq start

Install with AUR

The AUR (Arch User Repository) is a community-driven repository for Arch Linux users. It contains package descriptions (PKGBUILDs) that allow you to compile a package from the source and then install it via the Arch Linux package manager (pacman). NanoMQ also supports installing with AUR

  • Nanomq basic edition

    bash
    yay -S nanomq
  • Nanomq SQLite edition

    bash
    yay -S nanomq-sqlite
  • Nanomq MsQuic edition

    bash
    yay -S nanomq-msquic
  • Nanomq full edition

    bash
    yay -S nanomq-full

Installation package folders

The binary installation package contents are:

Foldersfunctional
/etcAll configuration files of NanoMQ
/usr/local/binNanoMQ' binary files
/usr/local/libinternal dynamic/static libs of NanoMQ