From 96bd56179069b87459a27f67608f91423508ca56 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Mon, 15 Mar 2021 17:49:15 +0100 Subject: [PATCH] feat(windows): Support environment variable override for windows --- Windows.md | 14 ++++++++++++++ bin/emqx.cmd | 2 ++ 2 files changed, 16 insertions(+) diff --git a/Windows.md b/Windows.md index 4f24f4d3a..5e947a22e 100644 --- a/Windows.md +++ b/Windows.md @@ -111,3 +111,17 @@ scoop install git curl make jq zip unzip Visual Studio should print out `Microsoft (R) Incremental Linker`. To fix it, Visual Studio's bin paths should be ordered prior to Cygwin's (or similar installation's) bin paths in `Path` environment variable. + +## Run EMQ X + +To start EMQ X broker. + +Execute `_build\emqx\rel\emqx>.\bin\emqx console` or `_build\emqx\rel\emqx>.\bin\emqx start` to start EMQ X. + +Then execute `_build\emqx\rel\emqx>.\bin\emqx_ctl status` to check status. +If everything works fine, it should print out + +``` +Node 'emqx@127.0.0.1' 4.3-beta.1 is started +Application emqx 4.3.0 is running +``` diff --git a/bin/emqx.cmd b/bin/emqx.cmd index 9092e553c..bef7da355 100644 --- a/bin/emqx.cmd +++ b/bin/emqx.cmd @@ -19,6 +19,8 @@ @set erts_vsn={{ erts_vsn }} @set erl_opts={{ erl_opts }} +@set "CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_" + @set script=%~n0 :: Discover the release root directory from the directory