官网DOC:https://www.emqx.io/docs/zh/v5.0/deploy/install-docker.html
1、获取 Docker 镜像
docker pull emqx:5.0.14
2、运行镜像启动容器
–name 名字
-p 18083 服务器启动端口
-p 1882 TCP端口
-p 8083 WS端口
-p 8084 WSS端口
-p 8883 SSL端口
-d 指定容器
docker run -d --name emqx -p 1883:1883 -p 8083:8083 -p 8084:8084 -p 8883:8883 -p 18083:18083 emqx:5.0.14
3、进入emq服务页面
在浏览器输入 机器IP:18083 就可以进入emqtt页面
初始的账户 admin, 密码 public
![](https://img-blog.csdnimg.cn/img_convert/d2782e119a784874963fee33e469d270.png)