报错如下图
你的 ACL 文件格式上有问题,看起来解析失败了。建议检查下该文件
{allow, {username, “emqx_test”,“longxing”}, subscribe, [“$SYS/#”]}.
{allow, {ipaddr, “127.0.0.1”}, all, [“$SYS/#”, “#”]}.
{deny, all, subscribe, [“$SYS/#”, {eq, “#”}]}.
{allow, {user, “websocket_test”}, subscribe, [“/maxvision/sys/notify/+/+/+”]}.
{deny, {user, “websocket_test”}, subscribe, [“#”]}.
{deny, {user, “websocket_test”}, publish, [“#”]}.
{allow, all}.
这样有问题吗
-type(username() :: {user | username, string()} | {user | username, {re, regex()}}).
你的 username
写错了,没有三个字段的这种模式
{allow, {username, “emqx_test”,“longxing”}, subscribe, [“$SYS/#”]}.
这个具体是怎么配置,能说一下吗
建议先看下官网的文档