阡陌博客 - 物联网
type: channel
link: https://www.kinmor.com/tag/物联网/
items: MQTT服务之一：centos 7.5安装部署mosquitto（物联网自学）

MQTT服务之一：centos 7.5安装部署mosquitto（物联网自学）
type: item
date: 2022-01-20T14:50:00+08:00
description: 1.yum install epel-release2.yum search mosquitto3.yum install mosquitto mosquitto-devel按【Y】4.service mosquitto start 启动mosquitto服务 报错Redirecting to /bin/systemctl start mosquitto.service/bin/systemctl start mosquitto.service 这么启动6.mosquitto_sub -t test1 创建一个主题 7.另外独立开启会话 mosquitto_pub -t test1 -m joyokim8.最终效果出来了