macOS

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 page macOS - 图1 (opens new window)

Install EMQX

  1. Download emqx-5.1.0-macos12-arm64.zip macOS - 图2 (opens new window).
wget https://www.emqx.com/en/downloads/broker/5.1.0/emqx-5.1.0-macos11-amd64.zip
  1. Install EMQX.
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:
$ emqx start
EMQX 5.1.0 is started successfully!

$ emqx_ctl status
Node 'emqx@127.0.0.1' 5.1.0 is started
  • To start EMQX with systemctl, run:
sudo systemctl start emqx
  • To start EMQX as a service, run:
sudo service emqx start

Uninstall EMQX

To uninstall EMQX, run:

sudo apt remove --purge emqx