macOS

This section guides you on installing and starting EMQX on macOS with a zip file.

Supported versions:

  • macOS 12
  • macOS 11

The section takes macOS 12 as an example to illustrate how to download the latest version of EMQX. If you want to install a different version or in a different system, please visit the EMQX Deployment pagemacOS - 图1 (opens new window)

Install EMQX

  1. Download emqx-5.1.0-macos12-arm64.zipmacOS - 图2 (opens new window).

    1. wget https://www.emqx.com/en/downloads/broker/5.1.0/emqx-5.1.0-macos11-amd64.zip
  2. Install EMQX.

    1. mkdir -p emqx && unzip emqx-5.1.0-macos11-amd64.zip -d emqx

Start EMQX

EMQX offers 3 different options to start EMQX:

  • To start EMQX directly, run:

    1. $ emqx start
    2. EMQX 5.1.0 is started successfully!
    3. $ emqx_ctl status
    4. Node 'emqx@127.0.0.1' 5.1.0 is started
  • To start EMQX with systemctl, run:

    1. sudo systemctl start emqx
  • To start EMQX as a service, run:

    1. sudo service emqx start

Uninstall EMQX

To uninstall EMQX, run:

  1. sudo apt remove --purge emqx