尧图网站设计 尧图网站设计YAOTU DESIGN
ARTICLE DETAIL

资讯详情

深耕网站设计与一线实操的经验洞察。

关于EMQX的问题

关于EMQX的问题 下载地址下载 EMQX 开源版一、auth_username授权1.需要在安装目录下修改配置文件,把匿名登录关闭 /etc/emqx.conf## Value: true | false allow_anonymous false2.在插件-管理-新增用户的用户数据存储 ./bin/emqx_ctl。查询为:./emqx_ctl users list另外命令$ ./bin/emqx_ctl users list users add Username Password users update Username NewPassword users del Username二、日志问题可以查看到一些配置 cat emqx.conf | grep logslog.to both log.level warning log.file emqx.log #log.chars_limit 81921.log.to默认值是both可选的值为offff:完全关闭日志功能fifile:仅将日志输出到文件console:仅将日志输出到标准输出(emqx控制台)both:同时将日志输出到文件和标准输出(emqx控制台)2.EMQ X的日志分8个等级 由低到高分别为debug info notice warning error critical alert emergency3.将error及error以上的日志单独输出到error.log.N文件中4.将单个日志消息的最大字符长度设置为8192
返回列表