EMQX命令


 
emqx start     启动 emqx_ctl status  检查运行状态 emqx uninstall    服务卸载 emqx restart    重启 emqx stop     停止 ./bin/emqx_ctl status  检查运行状态 ./bin/emqx_ctl     查看帮助命令
  跟踪日志
./bin/emqx_ctl trace start client [client id] ./bin/wwz.log     通过client id跟踪日志写到wwz.log文件中 ./bin/emqx_ctl trace stop client [client id]           停止通过client id跟踪 ./bin/emqx_ctl trace start topic [topic主题] ./bin/wwz.log   通过client id跟踪日志写到文件wwz.log中 ./bin/emqx_ctl trace stop topic [topic主题]         停止通过topic跟踪 ./bin/emqx_ctl trace list                 查询跟踪 ./bin/emqx_ctl log primary-level debug         调整日志级别为debug
tail -100f ./log/wwz.log  实时打印日志
    如果 EMQ 安装在本机,则使用浏览器打开地址 http://127.0.0.1:18083 ,输入默认用户名 admin 与默认密码 public ,登录进入 Dashboard。如果忘记了管理控制台密码,使用 管理命令 重置或新建管理账号   罗列一些重要的指标
Received---接收到的MQTT报文数 Sent---发送的MQTT报文数 Connect---几次MQTT连接 Connack---几次MQTT确认连接请求 Disconnect---几次MQTT连接断开 Pingreq---ping request 个数,在一个心跳周期内,客户端会发送一条pingreq到服务端 Pingresq---ping response 个数,服务端收到pingreq的请求之后,会立即响应一个两个字节固定格式的pingresq消息 Published/received---收到的Published报文个数 Published/sent---发送的Published报文个数 Puback/received---收到的Puback报文个数 Puback/sent---发送的Puback报文个数 Puback/missed---没收到的Puback报文个数 Pubcomp/received---收到的Pubcomp报文个数 Pubcomp/sent---发送的Pubcomp报文个数 Pubcomp/missed---失去的Pubcomp报文个数 Pubrec/received---收到的Pubrec报文个数 Pubrec/sent---发送的Pubrec报文个数 Pubrec/missed---失去的Pubrec报文个数 Pubrel/received---收到的Pubrel报文个数 Pubrel/sent---发送的Pubrel报文个数 Pubrel/missed---失去的Pubrel报文个数 Subscribe---发送的订阅数 Suback---发送返回的订阅数 Unsubscribe---发送的取消订阅数 Unsuback---发送返回的取消订阅数 The message data 消息数 Received---收到的消息数 Sent---发出的消息数 Dropped---丢失的消息数(在收到消息后,该消息无人订阅) Retained---保留的消息数 Qos0/received---收到的qos0消息数 Qos0/sent---发送的qos0消息数 Qos1/received---收到的qos1消息数 Qos1/sent---发送的qos1消息数 Qos2/received---收到的qos2消息数 Qos2/sent---发送的qos2消息数 Qos2/dropped---丢失的qos2消息数 The bytes data 流量收发统计(字节) Received---收到的流量字节 Sent---发送的流量字节
  任意节点上使用 ./bin/emqx_ctl cluster status 命令查询集群状态:
Cluster status: [{running_nodes,['emqx@192.168.233.111',               'emqx@192.168.233.112',               'emqx@192.168.233.113']}]
      来源:https://www.cnblogs.com/netcs/p/12460644.html emqx详细命令:https://www.bookstack.cn/read/emqx-enterprise-4.0-zh/34b1869ae6dde427.md  

emq