Skip to content

Instantly share code, notes, and snippets.

@fabiotatsuo
Last active January 28, 2021 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiotatsuo/48e07afca89a1e22d36df089f020ae23 to your computer and use it in GitHub Desktop.
Save fabiotatsuo/48e07afca89a1e22d36df089f020ae23 to your computer and use it in GitHub Desktop.
EMQX install binary or source Mac OS

Quickstart

https://docs.emqx.io/en/broker/latest/getting-started/install.html

Download binary

Brew option conflict if Cassandra installed, also use nodetool.

$ https://github.com/emqx/emqx/releases

$ unzip emqx-macos-4.2.6-x86_64.zip

Build from source option

https://github.com/emqx/emqx-rel

$ git clone https://github.com/emqx/emqx-rel.git emqx-rel
$ cd emqx-rel
$ git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
$ make
$ ./_build/emqx/rel/emqx/bin/emqx start

Commands

https://docs.emqx.io/en/broker/latest/getting-started/command-line.html

Start

$ ./bin/emqx start
EMQ X Broker 4.2.6 is started successfully!

Stop

$ ./bin/emqx stop
ok

Restart

$ ./bin/emqx restart
Node 'emqx@127.0.0.1' not responding to pings.
EMQ X Broker 4.2.6 is stopped:
EMQ X Broker 4.2.6 is started successfully!

Status

$ ./bin/emqx_ctl status
Node 'emqx@127.0.0.1' is started
emqx v4.2.6 is running

Console

$ ./bin/emqx console

Foreground

$ ./bin/emqx foreground

Configuration

https://docs.emqx.io/en/broker/latest/getting-started/config.html#introduction

File Desc
etc/emqx.conf EMQ X Broker Configuration File
etc/acl.conf EMQ X Broker default ACL File
etc/plugins/*.conf Configuration Files of Plugins

Dashboard

$ vim etc/plugins/emqx_dashboard.conf

Browser
http://localhost:18083/

Default username admin and password public

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment