emqx 5.1.2
配置如下
node {
name = "emqx15@10.0.103.15"
cookie = "emqxsecretcookie"
data_dir = "/var/lib/emqx"
}
cluster {
name = emqxcl
discovery_strategy = static
static {
seeds = ["emqx15@10.0.103.15", "emqx16@10.0.103.16", "emqx17@10.0.103.17"]
}
}
dashboard {
listeners.http {
bind = 18083
}
}
listeners.tcp.default {
bind = "0.0.0.0:1883"
max_connections = 1024000
}
# 文件上传配置
file_transfer {
enable = true
storage {
local {
enable = true
exporter {
local {
enable = true
root = "/data/upload"
}
}
}
}
}
上传日志:
18:21:36.789 [MQTT Call: agent--e4f2169d] INFO c.t.c.m.c.MqttCallbackConfig - [deliveryComplete,91] - 向主题[$file/773a98d860ee71a1455d3bc71556195a8bfde11f679b5eee5e6e3f4d16cd640f/init]发送数据! userProperties: {}, payload: {"name":"123.txt","size":32,"checksum":"773a98d860ee71a1455d3bc71556195a8bfde11f679b5eee5e6e3f4d16cd640f"}
18:21:36.790 [MQTT Call: agent--e4f2169d] INFO c.t.c.m.c.MqttCallbackConfig - [deliveryComplete,91] - 向主题[$file/773a98d860ee71a1455d3bc71556195a8bfde11f679b5eee5e6e3f4d16cd640f/0]发送数据! userProperties: {}, payload: 009901FF0018100000010019F0FFFD81
18:21:36.790 [MQTT Call: agent--e4f2169d] INFO c.t.c.m.c.MqttCallbackConfig - [deliveryComplete,91] - 向主题[$file/773a98d860ee71a1455d3bc71556195a8bfde11f679b5eee5e6e3f4d16cd640f/fin/32]发送数据! userProperties: {}, payload:
日志显示创建成功,但是服务端/data/upload上面找不到文件 ,不知道是什么原因,求大佬支招