Skip to content

Instantly share code, notes, and snippets.

@fabiotatsuo
Last active January 20, 2021 00:56
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/77465fbd619925d969d70fcbdd07c483 to your computer and use it in GitHub Desktop.
Save fabiotatsuo/77465fbd619925d969d70fcbdd07c483 to your computer and use it in GitHub Desktop.
Vernemq install Mac OS

Quickstart

'https://vernemq.com/downloads/index.html'

Tested: erlang/otp 23, vernemq 1.11, leveldb 1.2

Brew recipes

$ brew list

$ brew install openssl
$ brew install erlang
$ brew install leveldb

Download and build

$ git clone git://github.com/erlio/vernemq.git
$ cd vernemq
$ sudo make rel

Raise ulimit if need

Raise ulimit -n

$ vim .zshrc
ulimit -n 65536

Reload

$ source .zshrc

Check if successful

$ launchctl limit maxfiles

Commands

Before start, change owner folder _build

~/Documents/github/vernemq$ sudo chown -R username _build

Start

$ _build/default/rel/vernemq/bin/vernemq start

Console

$ _build/default/rel/vernemq/bin/vernemq console

// quit
> q().

Stop

$ _build/default/rel/vernemq/bin/vernemq stop

Ping

$ _build/default/rel/vernemq/bin/vernemq ping

Config

$ vim _build/default/rel/vernemq/etc/vernemq.conf

Browser monitoring

http://localhost:8888/metrics
http://localhost:8888/status

More

https://docs.vernemq.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment