create emqx project

Thales Macedo Garitezi 3fc8d4049f Merge pull request #6571 from emqx/fix-sticky-shared-sub-conf hace 4 años
.ci 6ad71a483e chore(authz): test Redis backend with real Redis hace 4 años
.github aceb4f1930 Merge pull request #6273 from Rory-Z/ci/add-push-ecr-for-5.0 hace 4 años
apps 3fc8d4049f Merge pull request #6571 from emqx/fix-sticky-shared-sub-conf hace 4 años
bin ecbb28fedf Merge pull request #6540 from emqx/fix-bin-vm-args hace 4 años
data 918a26e921 feat(conf): merge all conf to emqx.conf hace 4 años
deploy 68eb13d478 fix: portable shebang hace 4 años
lib-ee 7f49934216 chore: add BSL.txt hace 4 años
scripts 8342b3711d chore(update_appup): Improve `update_appup.escript` (5.0) hace 4 años
.editorconfig 7f12db0180 add editorconfig for emqx hace 7 años
.gitattributes c3b980fde9 chore: fix Windows compilation process hace 4 años
.gitignore c5f9f397f0 chore(ignore): add direnv dotfile hace 4 años
.tool-versions caf1784a90 build: update otp version hace 4 años
APL.txt 7f49934216 chore: add BSL.txt hace 4 años
CONTRIBUTING.md 56e2a9741f style: ensure newline at EOF for all files hace 4 años
LICENSE 7f49934216 chore: add BSL.txt hace 4 años
Makefile e2804ab29d chore(dashboard): update dashboard version, ignore v0.9.0 hace 4 años
NOTICE 79c550dc54 chore: add notice files hace 4 años
PLUGIN.md 4d9b4cb828 refactor: delete lib-extra hace 4 años
README-CN.md 7f49934216 chore: add BSL.txt hace 4 años
README-JP.md 7f49934216 chore: add BSL.txt hace 4 años
README-RU.md 7f49934216 chore: add BSL.txt hace 4 años
README.md 7f49934216 chore: add BSL.txt hace 4 años
Windows.md 96bd561790 feat(windows): Support environment variable override for windows hace 4 años
build 68eb13d478 fix: portable shebang hace 4 años
elvis.config 071c2c99e8 refactor(authn resources): add `emqx_resource` and `emqx_authn` tests hace 4 años
pkg-vsn.sh 6edd862dd5 refactor: no more EMQX_ENTERPRISE compile flag hace 4 años
rebar.config bd31b52e35 chore(ekka): Bump version to 0.11.2 hace 4 años
rebar.config.erl 4d9b4cb828 refactor: delete lib-extra hace 4 años

README-CN.md

EMQ X Broker

GitHub Release Build Status Coverage Status Docker Pulls Slack Twitter Community YouTube

最棒的物联网 MQTT 开源团队期待您的加入

English | 简体中文 | 日本語 | русский

EMQ X 是一款完全开源,高度可伸缩,高可用的分布式 MQTT 消息服务器,适用于 IoT、M2M 和移动应用程序,可处理千万级别的并发客户端。

从 3.0 版本开始,EMQ X 完整支持 MQTT V5.0 协议规范,向下兼容 MQTT V3.1 和 V3.1.1,并支持 MQTT-SN、CoAP、LwM2M、WebSocket 和 STOMP 等通信协议。EMQ X 3.0 单集群可支持千万级别的 MQTT 并发连接。

安装

EMQ X 是跨平台的,支持 Linux、Unix、macOS 以及 Windows。这意味着 EMQ X 可以部署在 x86_64 架构的服务器上,也可以部署在 Raspberry Pi 这样的 ARM 设备上。

Windows 上编译和运行 EMQ X 的详情参考:Windows.md

EMQ X Docker 镜像安装

docker run -d --name emqx -p 1883:1883 -p 8081:8081 -p 8083:8083 -p 8883:8883 -p 8084:8084 -p 18083:18083 emqx/emqx

二进制软件包安装

需从 EMQ X 下载 页面获取相应操作系统的二进制软件包。

从源码构建

3.0 版本开始,构建 EMQ X 需要 Erlang/OTP R21+。

4.3 及以后的版本:

git clone https://github.com/emqx/emqx.git
cd emqx
make
_build/emqx/rel/emqx/bin/emqx console

对于 4.3 之前的版本,通过另外一个仓库构建:

git clone https://github.com/emqx/emqx-rel.git
cd emqx-rel
make
_build/emqx/rel/emqx/bin/emqx console

快速入门

如果 emqx 从源码编译,cd _build/emqx/rel/emqx。 如果 emqx 通过 zip 包安装,则切换到 emqx 的根目录。

# Start emqx
./bin/emqx start

# Check Status
./bin/emqx_ctl status

# Stop emqx
./bin/emqx stop

EMQ X 启动,可以使用浏览器访问 http://localhost:18083 来查看 Dashboard。

测试

执行所有测试

make eunit ct

执行部分应用的 common tests

make apps/emqx_retainer-ct

静态分析(Dialyzer)

分析所有应用程序
make dialyzer
要分析特定的应用程序,(用逗号分隔的应用程序列表)
DIALYZER_ANALYSE_APP=emqx_lwm2m,emqx_authz make dialyzer

社区

FAQ

访问 EMQ X FAQ 以获取常见问题的帮助。

问答

GitHub Discussions EMQ 中文问答社区

参与设计

如果对 EMQ X 有改进建议,可以向EIP 提交 PR 和 ISSUE

插件开发

如果想集成或开发你自己的插件,参考 PLUGIN.md

联系我们

你可通过以下途径与 EMQ 社区及开发者联系:

欢迎你将任何 bug、问题和功能请求提交到 emqx/emqx

MQTT 规范

你可以通过以下链接了解与查阅 MQTT 协议:

MQTT Version 3.1.1

MQTT Version 5.0

MQTT SN

开源许可

详见 LICENSE