centos 安装 Mosquitto
时间: 2023-11-09 10:02:02 浏览: 150
linux环境下的mosquitto安装程序
5星 · 资源好评率100%
安装 Mosquitto 可以通过以下步骤完成:
1. 添加 Mosquitto 的 yum 源
```
sudo wget http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-7/home:oojah:mqtt.repo -O /etc/yum.repos.d/mosquitto.repo
```
2. 安装 Mosquitto
```
sudo yum install mosquitto
```
3. 启动 Mosquitto
```
sudo systemctl start mosquitto
```
4. 设置 Mosquitto 开机自启动
```
sudo systemctl enable mosquitto
```
阅读全文