其他分享
首页 > 其他分享> > Liunx安装MQTT服务器

Liunx安装MQTT服务器

作者:互联网

一、下载

# 下载地址
https://www.emqx.io/downloads#broker

二、安装

# 下载
wget https://www.emqx.io/downloads/broker/v4.2.7/emqx-centos7-4.2.7-x86_64.zip

# 解压
unzip emqx-centos7-4.2.7-x86_64.zip

三、启动 停止

./bin/emqx start  # 启动命令
./bin/emqx stop  # 停止命令

四、启动后登录管理后台

1.修改mqtt External TCP端口,该端口默认为1883,为mqtt主要连接端口
![](https://www.icode9.com/i/l/?n=20&i=blog/2008908/202102/2008908-20210201165311675-1601575880.png)

2.修改mqtt Internal TCP端口,该端口默认为11883
![](https://www.icode9.com/i/l/?n=20&i=blog/2008908/202102/2008908-20210201165337293-633637520.png)

3.修改mqtt External SSL端口,该端口默认为8883
![](https://www.icode9.com/i/l/?n=20&i=blog/2008908/202102/2008908-20210201165357104-1876551395.png)

4.修改mqtt WebSocket 端口,
![](https://www.icode9.com/i/l/?n=20&i=blog/2008908/202102/2008908-20210201165449464-1963742904.png)

5.修改mqtt WebSocket SSL端口配置文件为/emqx/etc/emqx.conf
![](https://www.icode9.com/i/l/?n=20&i=blog/2008908/202102/2008908-20210201165522859-1404712906.png)

6.修改mqtt API 端口配置文件为/emqx/etc/emqx.conf

标签:端口,mqtt,MQTT,2008908,Liunx,https,emqx,服务器,202102
来源: https://www.cnblogs.com/hziwei/p/14357566.html