通过1panel直接安装的
这个是hostname有问题,
强制设置节点名为emqx@127.0.0.1就好了
emqx - Official Image | Docker Hub
https://hub.docker.com/_/emqx
EMQX node name configuration
Environment variable EMQX_NODE__NAME allows you to specify an EMQX node name, which defaults to <container_name>@<container_ip>.
If not specified, EMQX determines its node name based on the running environment or other environment variables used for node discovery.